Part Number Hot Search : 
C020401 NTE19 SBL3030 2261L20 SD830YT WH160100 XFHCL 1N5372
Product Description
Full Text Search
 

To Download 71M6533-ADNF Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  71m6533/ g/ h and 71m6534/h energy meter ic s data sheet re v 2 1 general description the teridian ? 71m6533 and 71m6534 are third - generation polyphase metering systems- on - chip s (so cs ) with a 10mhz 8051 - compatible mpu core, low - power rtc, flash, and lcd driver. the single converter technology? with a 22 - bit delta - sigma adc, seven analog inputs, digital temperature compensation, precision voltage reference , and a 32 - bit computation engine (ce) supports a wide range of metering applications with very few external components. the 71m6533 and 71m6534 add several new features to the teridian flagship 71m6513 polyphase meters , including an spi in terface, advanced power management with < 1 a sleep current, 4 kb shared ram , and 128kb (71m6533/h, 71m6534) , or 256 kb ( 71m6533g, 71m6534h) f lash , which can be programmed in the field with new code and/or data during meter operation. higher pro cessing and sampling rates and larger memory offer a po werful metering platform for commercial and industrial meters with up to class 0.2 accuracy. a complete array of ice and development tools, programming libraries and reference designs enable rapid development and certification of meters that meet all ansi and iec electricity metering standard s worldwide. features ? wh accuracy < 0.1% o ver 2000:1 r ange ? exceeds iec 62053 / ansi c12.20 s tandards ? seven sensor inputs with neutral current measurement ? low - jitter wh and varh plus two additional pulse test out puts (4 t otal, 10 khz max ) with pulse count ? four - quadrant metering ? phase sequencing ? line frequency count for rtc ? digital temperature compensation ? independent 32 - bit c e ? 46 - 64 hz lin e frequency range with s ame calibration ; phase compensation ( 7 ) ? three battery - back u p modes with wake - up on timer or push button: brownout m ode (82 a typ , 71m6533) lcd m ode (21 a typ , dac active) sleep m ode (0.7 a typ ) ? energy display during mains power fail u re ? 39 mw ( typ ) c onsumption at 3.3 v, mpu clock f requency 614 khz ? 8-b it mpu (80515), 10 mhz ( max ) , one c lock c ycle per in struction with i ntegrated ice for d ebug ? lcd d river with four c ommon s egment d rivers: up to 228 p ixels (71m6533) or 300 p ixels (71m6534) ? four d edicated + 35 (71m6533) or 48 (71m6534) m ulti function dio p ins ? rtc for tou f unctions with c lock -r ate a djust r egister ? hardware watchdog timer, power - fail mo nitor ? i 2 c/ microwire ? eeprom interface ? high - speed sla ve spi interface to d ata ram ? two uarts for ir and amr, ir d river with m odulation ? flash m emory with s ecurity and in - system program update: 128 kb (71m6533/h, 71m6534) 256 kb (71m6533g, 71m6534h) ? 4 kb ram ? industrial temperature range ? 100 -p in (71m6533/ g/ h) or 120 -p in (71m6534/h) l ead (pb) -f ree lqfp p ackage mpu rtc timers ia va ib vb xin xout rx tx v1 tx rx com0..3 v3p3a v3p3sys vbat v2p5 ic vc seg gnda gndd seg/ dio dio ice live live live neut load 8888.8888 pulses, dio power fault ir amr comparator mod serial ports osc/ pll converter lcd driver dio , pulse compute engine flash ram 32 khz regulator ct / coil power supply teridian 71m653371m6534 temp sensor vref id battery pwr mode control wake-up neutral i 2 c or wire eeprom 9/24/2008 v2* * 71m6534 only teridian is a trademark and single converter technology is a registered trademark of maxim integrated products, inc. microwire is a r egistered trademark of national semiconductor corp. 19 - 5373; rev 2; 2/12 downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 2 re v 2 table of contents 1 hardware description .................................................................................................................... 9 1.1 hardware overview ............................................................................................................... 9 1.2 analog front end (afe) ........................................................................................................ 9 1.2.1 signal input pins ......................................................................................................... 9 1.2.2 input multiplexer ........................................................................................................ 10 1.2.3 a/d converter (adc) ................................................................................................ . 11 1.2.4 fir filter ................................................................................................................... 11 1.2.5 voltage references ................................................................................................... 12 1.2.6 temperature sensor .................................................................................................. 13 1.2. 7 battery monitor .......................................................................................................... 13 1.2.8 afe functional description ....................................................................................... 13 1.3 digital computation engine (ce) ....................................................................................... 14 1.3.1 meter equations ........................................................................................................ 15 1.3.2 real - time monitor ..................................................................................................... 16 1.3.3 pulse generators ...................................................................................................... 16 1.3.4 data ram (xram) .................................................................................................... 16 1.3.5 ce functional overview ............................................................................................ 17 1.3.6 delay compensation ................................................................................................ . 18 1.4 80515 mpu core .................................................................................................................. 19 1.4.1 memory organization and addressing ....................................................................... 19 1.4.2 special function registers (sfrs) ............................................................................ 21 1.4.3 generic 80515 special function registers ................................................................ 22 1.4.4 71m6533/71m6534 - specific special function registers ............................................ 25 1.4.5 instruction set ........................................................................................................... 26 1.4.6 uarts ...................................................................................................................... 26 1.4.7 timers and counters ................................................................................................ . 29 1.4.8 wd timer (software watchdog timer) ...................................................................... 30 1.4.9 interrupts ................................................................................................................... 30 1.5 on - chip resources ............................................................................................................. 37 1.5.1 oscillator ................................................................................................................... 37 1.5.2 pll and internal clocks ............................................................................................. 37 1.5.3 real - time clock (rtc) ............................................................................................. 38 1.5.4 temperature sensor .................................................................................................. 39 1.5.5 physical memory ....................................................................................................... 39 1.5.6 optical interface ........................................................................................................ 42 1.5.7 digital i/o .................................................................................................................. 42 1.5.8 lcd drivers .............................................................................................................. 46 1.5.9 battery monitor .......................................................................................................... 47 1.5.10 eeprom interface .................................................................................................... 47 1.5.11 spi slave port ........................................................................................................... 50 1.5.12 hardware watchdog timer ........................................................................................ 53 1.5.13 test ports (tmuxout pin) ....................................................................................... 54 1.5.14 v2 comparator (71m6534/6534h only) ..................................................................... 54 2 functional description ................................................................................................................ 55 2.1 theory of operation ............................................................................................................ 55 2. 2 system timing summary .................................................................................................... 56 2.3 battery modes ..................................................................................................................... 57 2.3.1 brownout mode ................................................................................................... 59 downloaded from: http:///
f ds_6533_6534_004 71m6533 /g / h and 71m6534 /h data sheet re v 2 3 2.3.2 lcd mode ................................................................................................................. 59 2.3.3 sleep mode ............................................................................................................. 59 2.4 fault and reset behavior ................................................................................................... 65 2.4.1 reset mode ............................................................................................................... 65 2.4.2 power fault circuit .................................................................................................... 65 2.5 wake up behavior ............................................................................................................... 65 2.5.1 wake on pb .............................................................................................................. 65 2.5.2 wake on timer .......................................................................................................... 66 2.6 data flow ............................................................................................................................. 66 2.7 ce/mpu communication .................................................................................................... 67 3 application information ............................................................................................................... 68 3.1 connection of sensors (ct, resistive shunt) ................................................................... 68 3.2 distinction between 71m6533/71m6534 and 71m6533g/h/71m6534h parts ..................... 68 3.3 connecting 5 v devices ...................................................................................................... 69 3.4 temperature measurement ................................................................................................ . 69 3.5 temperature compensation ............................................................................................... 69 3.5.1 temperature coefficients .......................................................................................... 69 3.5.2 temperature compensation for vref ....................................................................... 71 3.5.3 system temperature compensation .......................................................................... 72 3.5.4 temperature compensation for the rtc ................................................................... 72 3.6 connecting lcds ................................................................................................................ 72 3.7 connecting i 2 c eeproms .................................................................................................. 73 3.8 connecting three - wire eeproms ..................................................................................... 73 3.9 uart0 (tx/rx) .................................................................................................................... 74 3.10 optical interface (uart1) ................................................................................................... 74 3.11 connecting the v1 pin ........................................................................................................ 75 3.12 connecting the reset pin ................................................................................................... 75 3.13 connecting the emulator port pins .................................................................................... 76 3.14 connecting a battery .......................................................................................................... 76 3.15 flash programming ............................................................................................................ 77 3.16 mpu firmware library ........................................................................................................ 77 3.17 crystal oscillator ................................................................................................................ 77 3.18 meter calibration ................................................................................................................. 78 4 firmware interface ....................................................................................................................... 79 4.1 i/o ram and sfr map C functional order .......................................................................... 79 4.2 i/o ram description C alphabetical order ......................................................................... 83 4.3 ce interface description ..................................................................................................... 95 4.3.1 ce program .............................................................................................................. 95 4.3.2 ce data format ........................................................................................................ 95 4.3.3 constants .................................................................................................................. 95 4.3.4 environment .............................................................................................................. 96 4.3.5 ce calculations ......................................................................................................... 97 4.3.6 ce front end data (raw data) .................................................................................. 97 4.3.7 ce status and control ............................................................................................... 98 4.3.8 ce transfer variables ............................................................................................. 100 4.3.9 temperature measurement and temperature compensation .................................. 102 4.3.10 pulse generation ..................................................................................................... 102 4.3.11 noise suppression and version parameters ............................................................ 104 4.3.12 ce calibration parameters ...................................................................................... 104 4.3.13 ce flow diagrams .................................................................................................. 105 downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 4 re v 2 5 electrical specifications ............................................................................................................ 107 5.1 absolute maximum ratings .............................................................................................. 107 5.2 recommended external components ............................................................................. 108 5.3 recommended operating conditions .............................................................................. 108 5.4 performance specifications ............................................................................................. 109 5.4.1 input logic levels ................................................................................................... 109 5.4.2 output logic levels ................................................................................................ . 109 5.4.3 power - fault comparator ......................................................................................... 109 5.4.4 v2 comparator (71m6534 only) ............................................................................... 109 5.4.5 battery monitor ........................................................................................................ 110 5.4.6 supply current ........................................................................................................ 110 5.4.7 v3p3d switch ......................................................................................................... 110 5.4.8 2.5 v voltage regulator ........................................................................................... 111 5.4.9 low - power voltage regulator ................................................................................. 111 5.4.10 crystal oscillator ..................................................................................................... 111 5.4.11 optical interface ...................................................................................................... 111 5.4.12 lcd dac ................................................................................................................ 112 5.4.13 lcd drivers ............................................................................................................ 112 5.4.14 temperature sensor ................................................................................................ 113 5.4.15 vref and vbias .................................................................................................... 114 5.4.16 adc converter, v3p3a referenced ........................................................................ 115 5.5 timing specifications ....................................................................................................... 116 5.5.1 flash memory ......................................................................................................... 116 5.5.2 eeprom interface .................................................................................................. 116 5.5.3 reset .................................................................................................................... 116 5.5.4 rtc ........................................................................................................................ 116 5.5.5 spi slave port (mission mode) ............................................................................. 117 5.6 typical performance data ................................................................................................ 118 5.6.1 accuracy over current ............................................................................................. 118 5.6.2 accuracy over temperature ..................................................................................... 119 5.7 package outline drawings ............................................................................................... 119 5.7.1 71m6533 (100 - pin lqfp) ........................................................................................ 119 5.7.2 71m6534/6534h (120 - pin lqfp) ............................................................................ 12 0 5.8 pinout ................................................................................................................................ 121 5.8.1 71m6533/71m6533g/71m6533h pinout (100 - pin lqfp) ......................................... 121 5.8.2 71m6534/71m6534h pinout (120 - pin lqfp) ........................................................... 122 5.9 pin descriptions ................................................................................................................ 123 5.9.1 power and ground pins ........................................................................................... 123 5.9.2 analog pins ............................................................................................................. 123 5.9.3 digital pins .............................................................................................................. 124 5.9.4 i/o equivalent circuits ............................................................................................. 126 6 ordering information ................................................................................................................. 127 7 related information ................................................................................................................... 127 8 contact information ................................................................................................................... 127 appendix a: acronyms ..................................................................................................................... 128 appendix b: revision history ........................................................................................................... 129 downloaded from: http:///
f ds_6533_6534_004 71m6533 /g / h and 71m6534 /h data sheet re v 2 5 figures figure 2: general topology of a chopped amplifier ............................................................................... 12 figure 4: afe block diagram ................................................................................................................. 14 figure 5: samples from multiplexer cycle .............................................................................................. 17 figure 7: interrupt structure ................................................................................................................... 36 figure 8: optical interface ...................................................................................................................... 42 figure 9: connecting an external load to dio pins ............................................................................... 46 figure 11: 3 - wire interface. write command, hiz=1 .............................................................................. 49 figure 12: 3 - wire interface. read command. ........................................................................................ 49 figure 13: 3 - wire interface. write command when cnt=0 ................................................................... 49 figure 15: spi slave port: read operation with gap ............................................................................. 51 figure 16: spi slave port: typical read and write operations .............................................................. 53 figure 17: functions defined by v1 ....................................................................................................... 53 figure 18: voltage, current, momentary and accumulated energy ......................................................... 55 figure 19: timing relationship between adc mux and compute engine .............................................. 56 figure 20: rtm output format .............................................................................................................. 56 figure 21: operation modes state diagram ........................................................................................... 57 figure 23: power - up timing with v3p3sys and vbat tied together ................................................... 60 figure 24: power - up timing with vbat only ......................................................................................... 61 figure 25: functional blocks in brownout mode ............................................................................... 62 figure 26: functional blocks in lcd mode ............................................................................................. 63 figure 28: wake up timing ................................................................................................................... 66 figure 29: mpu/ce data flow ............................................................................................................... 66 figure 30: mpu/ce communication ...................................................................................................... 67 figure 31: resistive voltage divider ...................................................................................................... 68 figure 32: ct with single ended (left) and differential input (right) connection .................................... 68 figure 33: resistive shunt (left), rogowski sensor (right) ................................................................... 68 figure 34: error band for vref over temperature (regular - accuracy parts) ........................................ 71 figure 35: error band for vref over temperature (high -accuracy parts) ............................................. 71 figure 36: connecting lcds .................................................................................................................. 73 figure 37: i 2 c eeprom connection ...................................................................................................... 73 figure 38: three - wire eeprom connection ......................................................................................... 74 figure 39: connections for uart0 ........................................................................................................ 74 figure 40: connection for optical components ...................................................................................... 75 figure 41: voltage divider for v1 ........................................................................................................... 75 figure 42: external components for the reset pin: push - button (left), production circuit (right) ....... 76 figure 43: external components for the emulator interface ................................................................... 76 figure 45: ce data flow: multiplexer and adc .................................................................................... 105 figure 47: ce data flow: squaring and summation stages ................................................................ . 106 figure 48: spi slave port (mission mode) timing ............................................................................. 117 figure 49: wh accuracy (0.1 a - 200 a, 240 v, room temperature) at various frequencies (differential mode, cts) .................................................................................................................................. 118 figure 50: typical wh accuracy (0.02 a - 200 a, 240 v, room temperature), various load angles (differential mode, cts) ................................................................................................................ 118 figure 51: 71m6533/71m6533g/71m6533h 100 - pin lqfp packag e outline ....................................... 119 figure 52: 71m6534/6534h 120 - pin lqfp package outline ................................................................ 120 figure 53: pinout for 71m6533/71m6533g/71m6533h lqfp - 100 package ......................................... 121 figure 54: pinout for 71m6534/71m6534h lqfp - 120 package ........................................................... 122 downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 6 re v 2 tables table 1: signals selected for the adc with slotn_sel and slotn_altsel ( mux_div[3:0] = 7) ........... 11 table 2: adc resolution ....................................................................................................................... 11 tabl e 3: adc ram locations ................................................................................................................ 12 table 4: xram locations for adc results ............................................................................................ 15 table 5: inputs selected in regular and alternate multiplexer cycles ..................................................... 15 table 6: ckmpu clock frequencies ...................................................................................................... 19 table 7: memory map ............................................................................................................................ 20 table 9: special function register map ................................................................................................ . 21 table 10: generic 80515 sfrs - location and reset values ................................................................ . 22 table 11: psw bit functions (sfr 0xd0) ............................................................................................... 23 table 12: port registers ........................................................................................................................ 24 table 13: stretch memory cycle width .................................................................................................. 25 table 14: 71m6533/71m6534 specific sfrs ......................................................................................... 25 table 16: uart modes ......................................................................................................................... 27 table 18: the s1con (uart1) register (sfr 0x9b) ............................................................................. 28 table 19: pcon register bit description (sfr 0x87) ............................................................................. 28 table 20: timers/counters mode description ........................................................................................ 29 table 21: allowed timer/counter mode combinations ........................................................................... 29 table 22: tmod register bit description (sfr 0x89) ............................................................................ 29 table 23: the tcon register bit functions (sfr 0x88) ........................................................................ 30 table 24: the ien0 bit functions (sfr 0xa8) ........................................................................................ 31 table 25: the ien1 bit functions (sfr 0xb8) ....................................................................................... 31 table 26: the ien2 bit functions (sfr 0x9a) ........................................................................................ 31 table 27: tcon bit functions (sfr 0x88) ............................................................................................. 32 table 28: the t2con b it functions (sfr 0xc8) ................................................................................... 32 table 29: the ircon bit functions (sfr 0xc0) .................................................................................... 32 table 30: external mpu interrupts ......................................................................................................... 33 table 31: interrupt enable and flag bits ................................................................................................ 33 table 32: interrupt priority level groups ................................................................................................ 34 table 33: interrupt priority levels .......................................................................................................... 34 table 35: interrupt polling sequence ..................................................................................................... 35 table 36: interrupt vectors .................................................................................................................... 35 table 37: clock system summary ......................................................................................................... 37 table 38: bank switching with fl_bank[2:0] ........................................................................................ 41 table 39: data/direction registers and internal resources for dio 1 - 15 ................................................ 43 table 40: data/direction registers and internal resources for dio 16 - 30 .............................................. 43 table 41: data/direction registers and internal resources for dio 36 - 47 .............................................. 44 table 45: eectrl bits for the 3 - wire interface ....................................................................................... 48 table 46: spi registers ......................................................................................................................... 50 table 47: spi command description ..................................................................................................... 51 table 49: tmux[4:0] selections ............................................................................................................ 54 table 50: available circuit functions ..................................................................................................... 58 table 51: vref definition for the regular accuracy parts ..................................................................... 70 table 52: vref definition for the high - accuracy part s .......................................................................... 70 table 53: i/o ram map C functional order ........................................................................................... 79 table 54: i/o ram description C alphabetical (by bit name) ................................................................ . 83 table 55: ce equ[2:0] equations and element input mapping .............................................................. 97 table 56: ce raw data access locations ............................................................................................. 97 table 57: cestatus (ce ram 0x80) bit definitions .............................................................................. 98 table 59: sag threshold and gain adjust control ................................................................................ 100 table 60: ce transfer variables .......................................................................................................... 100 table 61: ce energy measurement variables ...................................................................................... 101 table 62: other transfer variables ...................................................................................................... 102 table 63: ce temperature registers ................................................................................................... 102 table 65: ce parameters for noise suppression and code version ..................................................... 104 table 66: ce calibration parameters ................................................................................................... 1 04 table 67: absolute maximum ratings .................................................................................................. 107 downloaded from: http:///
f ds_6533_6534_004 71m6533 /g / h and 71m6534 /h data sheet re v 2 7 table 68: recommended external components .................................................................................. 108 table 69: recommended operating conditions ................................................................................... 108 table 70: input logic levels ................................................................................................................ 109 table 71: output logic levels ............................................................................................................. 109 table 72: power - fault comparator performance specifications ............................................................ 109 table 73: v2 comparator performance specificat ions ......................................................................... 109 table 74: battery monitor performance specifications ( bme = 1) ......................................................... 110 table 75: supply current performance specifications .......................................................................... 110 table 76: v3p3d switch performance specifications ........................................................................... 110 table 77: 2.5 v voltage regulator performance specifications ............................................................ 111 table 78: low - power voltage regu lator performance specifications ................................................... 111 table 79: crystal oscillator performance specifications ....................................................................... 111 table 80: optical interface performance specifications ........................................................................ 111 table 81: lcd dac performance specifications .................................................................................. 112 table 82: lcd driver performance specification s ................................................................................ 112 table 83: temperature sensor performance specifications ................................................................ . 113 table 84: vref performance specifications ........................................................................................ 114 table 85: adc converter performance specifications ......................................................................... 115 table 86: flash memory timing specifications .................................................................................... 116 table 87: eeprom interface timing ................................................................................................... 116 table 88: reset timing ..................................................................................................................... 116 table 89: rtc range for date ............................................................................................................ 116 table 90: spi slave port (mission mode) timing ............................................................................... 117 table 91: power and ground pins ....................................................................................................... 123 table 92: analog pins .......................................................................................................................... 123 table 93: digital pins ........................................................................................................................... 124 downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 8 re v 2 figure 1 : ic functional block diagram ? adc converter vref mux xin xout vref dio1/opt_rx reset v1 uart 2/ optical uart1 tx rx 4 com3..0 lcd display driver digital i/o rtclk (32khz) power fault gndd v3p3a v3p3d vbat volt reg 2.5v to logic v2p5 tmuxout faultz tmux[4:0] gnda vbias osc (32 khz) mck pll vref test test mode dio_dirdio_r dio e_rxtx rtc rst_subsecqreg,preg rtc_day rtc_hr rtc_min rtc_sec vbias ice_e pls_invpls_interval pls_maxwidth ce_lctn equ pre_samps sum_cycles rtm_0...3 rtm_e ce_e opt_rxdisopt_rxinv opt_txe opt_txinv opt_txmod opt_fdc lcd_onlysleep v3p3sys test mux ce_prog ck_ce ck_mpu vadc ce multi - purpose i/o rtm rpulse wpulse com0..3 segments 24 dio_1..24 to tmux spi slave pcmd eeprom i/f flash 128 kb/ 256 kb xram 4 kb ce_data pcsz pclkpsdi psdo sdata sclk eedataeectrl opt_tx opt_rx pb pb iram 256b mpu emulator e_tclk e_rstz dio2/opt_tx dio3 seg7/mux_sync seg8 seg9/e_rxtx seg10/e_tclk seg11/e_rst seg12 ...seg18 seg19/cktest dio29 / seg49...dio30 / seg50 dio4/seg24/sdck dio5/seg25/sdata dio6/seg26/wpulse dio7/seg27/rpulse dio10 / seg30...dio11 / seg31 dio41/seg61 rpulse wpulse 4 xram bus 8 iram bus 8 16 32 22 cktest dio_pvdio_pw ckout_e spe dio_eex opt_txe ice_e seg0...seg2 seg3/pclk seg4/psdo seg5/pcsz seg6/psdi fir dio23 / seg43...dio27 / seg47 dio13 / seg33...dio21 / seg41 xpulseypulse xpulse ypulse dio_pxdio_py dio8/seg28/xpulse dio9/seg29/ypulse seg20...seg23 dio56...dio58 7 3 4 2 5 3 ice_e gp0-gp7 nv ram 2.5v_nv 2.5v_nv 2.5v_nv 2.5v_nv rtca_adj rtc_datertc_mo rtc_yr lcd_daclcd_mode lcd_clk lcd_e lcd_blkmap lcd_seg lcd_y mpu _ div ckout _e ibp vb icp vc iap va ian ibn icn idp idn dio43 / seg63...dio45 / seg65 dio47 / seg67...dio51 / seg71 4 3 9 8 5/24/2010 + - v2_ ok * + - v3_ ok * vbias * v3* v2* * 71m6534 only dio12 / seg32 * dio22 / seg42 * dio28 / seg48 * 2 dio36 / seg56*...dio39 / seg59 * dio42/seg62* dio46/seg66* 5 dio52 / seg72*...dio55 / seg75 * 4 temp vbat downloaded from: http:///
f ds_6533_6534_004 71m6533 /g / h and 71m6534 /h data sheet re v 2 9 1 hardware description 1.1 hardware overview the teridian 71m6533 and 71m6534 single - chip energy meter integrate all primary functional blocks re quired to implement a solid - state electricity meter. included on the chip are : ? an analog front end (afe) ? an i ndependent digital computation engine (ce) ? an 8051 - compatible micropr ocessor (mpu) which executes one inst ruction per clock cycle (80515) ? a voltage reference ? a temperature sensor ? lcd drivers ? ram and flash memory ? a real time clock (rtc) ? a variety of i/o pi ns various current sensor technologies are supported including current transformers (ct), resistive shunts and rogowski coils. in a typical application, the 32 - bit compute engine (ce) of the 71m6533 /71m6534 sequentially processes the samples from the voltage inputs on analog input pins and performs calculations to measure active ener gy (wh) and reactive energy (varh), as well as a 2 h, and v 2 h for four - quadrant metering. these measurements are then accessed by the mpu, processed further and output using the peripheral devices available to the mpu. in addition to advanced measurement functions, the real time clock function allows the 71m6533/71m6534 to record time of use (tou) metering information for multi - rate applications and to time - stamp tamper events. measurements can be displayed on 3.3 v lcd s commonly used in low - tem perature environments. flexible mapping of lcd display segments facilitate integration of existi ng custom lcds. design trade - off s between the number of lcd segments and dio pins can be implemented in software to accommodate various require ments. in addition to the temperature - trimmed ultra - precision voltage reference, the on - chip digital temperature com pensation mechanism includes a temperature sensor and associated controls for correcti on of unwanted temperature effects o n meas ure ment and rtc accuracy, e.g. to meet the requirements of ansi and iec standards . temperature dependent external com ponents such as a crystal oscillator, current transformers (cts) and their corresponding signal conditioning circuits can be char acter ized and their correction factors can be programmed to produce electricity meters with exceptional accuracy over the industrial temperature range. one of the two internal uarts is adapted to support an infrared led with inter nal drive and sense configuration and can also function as a standard uart. the optical output can be modulated at 38 khz. this flexibility makes it possible to implement amr meters with an ir interface. a block diagram of the ic is shown in figure 1 . 1.2 analog front end (afe) the afe of the 71m6533/71m6534 consists of an input multiplexer, a delta - sigma a/d converter and a voltage reference. 1.2.1 signal input pins all analog signal input pins are sensitive to voltage. the va, vb, and vc pins are single - ended. pins iap/ian, ibp/ibn, icp/icn , and idp/idn can be programmed individually to be differential or single - ended. the differential signal is applied between the inp and inn input pins. single - ended signals are applied to the inp input while the common signal, return, is the v3p3a pin. when using the di fferential mode, inputs can be chopped, i.e. , a connection from v3p3a to inp or inn alternates in each multiplexer cycle. downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 10 re v 2 1.2.2 input multiplexer the input multiplexer applies the input signals from the pins iap/ian, va, ibp/ibn, vb, icp/icn, vc, and idp/idn to the input of the adc. additionally, using the alternate multiplexer selection, it has the ability to select temperature and the battery voltage. one input is applied per time slot . the multiplexer can implement from one to 10 time slots (states) per frame as controll ed by the i/o ram field mux_div [3:0] . th e multiplexer always starts at state 1 and proceeds until as many states as de fined by mux_div[3:0] have been converted. the multiplexer can be operated in two modes: ? during a normal multiplexer cycle ( mux_alt = 0) , the signals selected in the i/o ram slotn_sel[3:0] fields are processed. these are typically the signals from the ia, ib, ic, id and va , vb, and vc pins. ? during the alternate multiplexer cycle ( mux_alt = 1) , the signals selected in the slotn_sel[3:0] fields are processed. these signals typically comprise the temperature signal (temp), the battery m onitor (vbat) and some of the voltage signals such as va, vb, and vc. to prevent unnecessary drainage on the battery, the battery monitor is enabled only with the bme bit ( io ram 0x2020[6 ]) . the alternate multiplexer cycles are usually performed infrequently (every second or so) by the mpu. in order to prevent disruption of the voltage tracking mechanism and voltage allpass networks of th e ce , va, vb, and vc are not r eplaced in the alternate cycles . the current inputs can be configured to be used in differential mode, using the pin pairs iap /ian, ibp/ibn, icp/icn , and idp/idn . the fourth current input is available to support measurement of a fourth or neutral phase. in a typical application, iap/ian, ibp/ibn, icp/icn , and idp/idn are connected to current transformers that sense the current on each phase of the line voltage. va, v b, and vc are typically connected to the phase voltages via resistor dividers. mult iplexer advance, fir initiation and vref chopping are controlled by the internal mux_ctrl signal. additionally, mux_ctrl launches each pass through the ce program. concept ually, mux_ctrl is clocked by ck32, the 32768hz clock from the pll block. the behavior of mux_ctrl is governed by mux_alt , equ [2:0] , chop_e [1:0] , and mux_div[3:0] . the mux_alt bit requests an alternative multiplexer frame. the bit may be asserted on any mpu cycle and may be subsequently deasserted on any cycle including the next one. a rising e dge on mux_alt will cause mux_ctrl to wait until the next multiplexer frame and implement a single alternate mult iplexer frame. the inputs converted during normal and alternate frames are selectable using the pointers to signals . slotn_sel[3:0] selects the input signal for the nth state in a standard multiplexer frame, while slotn_altsel [3:0] selects the input for the nth state in an alternate multiplexer frame. for example, if slot0_sel[3:0] contains 0 and slot1_sel[3:0] contains 1, signal selection 0, equivalent to ia (see table 1 ), will be applied for the first time slot, while signal 1, equivalent to va, will be applied for the second time slot. see table 1 for a typical assignment of values for the slotn_sel[3:0] and slotn_altsel[3:0] reg isters assuming seven time slots ( mux_div [3:0] = 7) for the processing of three voltage and current phases plus an additional neutral current. the correlation between signal numbers, ce memory addresses, and analog signals is given in table 3 . for the processing of three voltage and current phases in a typical polyphase meter without neutral measurement, mux_div[3:0] is set to 6, and slot6_sel [3:0] as well as slot6_altsel [3:0] would be empty. downloaded from: http:///
f ds_6533_6534_004 71m6533 /g / h and 71m6534 /h data sheet re v 2 11 table 1 : signals selected for the adc with slotn_sel and slotn_altsel ( mux_div [3:0] = 7) time slot regular slot alternate slot register typical selections register typical selections signal number signal for adc signal number signal for adc 0 slot0_sel[3:0] 0 ia slot0_altsel [3:0] a temp 1 slot1_sel[3:0] 1 va slot1_altsel [3:0] 1 va 2 slot2_sel[3:0] 2 ib slot2_altsel [3:0] b vbat 3 slot3_sel[3:0] 3 vb slot3_altsel [3:0] 3 vb 4 slot4_sel[3:0] 4 ic slot4_altsel [3:0] 4 ic 5 slot5_sel[3:0] 5 vc slot5_altsel [3:0] 5 vc 6 slot6_sel[3:0] 6 id slot6_altsel [3:0] 6 id slot7_sel[3:0] C C slot7_altsel [3:0] slot8_sel[3:0] C C slot8_altsel [3:0] slot9_sel[3:0] C C slot9_altsel [3:0] the duration of each multiplexer state depends on the number of adc samples processed by the fir, which is set by fir_len [1:0] . each multiplexer state will start on the rising edge of ck32. fir conversion s require 1, 2, or 3 ck32 cy cles. the number of ck32 cycles is determined by fir_len [1:0] . 1.2.3 a/d converter (adc) a single delta - sigma a/d converter digitizes the voltage and current inputs to the 71m6533/71m6534 . the resolution of the adc is programmable using the i/o ram bits m40mhz and m26mhz (see table 2 ). the ce code must be tailored for use with the selected adc resolution. table 2 : adc resolution setting for [ m40mhz, m26mhz ] fir_len [1:0] fir ce cycles resolution [00], [10] or [11] 0 1 2 138 288 384 18 bits 21 bits 22 bits [01] 0 1 2 186 384 588 19 bits 22 bits 24 bits initiation of each adc conversion is controlled by mux_ctrl as described in section 1.1.1 . at the end of each adc conversion, the fir filter output data is stored into the ce ram loc ation determined by the mux selection. 1.2.4 fir filter the finite impulse response filter is an integral part of the adc and it is optimized for us e with the multiplexer. the purpose of the fir filter is to decimate the adc output to the desired resolution. at the end of each adc conversion, the output data is stored into the fixed ce ram locatio n determined by the multiplexer selection as shown in table 3 . fir data is stored lsb justified, but shifted left by eight bits. downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 12 re v 2 table 3 : adc ram locations signal number address (hex) name signal number address (hex) name 0 0x00 ia 5 0x05 vc 1 0x01 va 6 0x06 id 2 0x02 ib 0x0a 0x0a temp 3 0x03 vb 0x0b 0x0b vbat 4 0x04 ic 1.2.5 voltage references the device includes an on - chip precision bandgap voltage reference that incorporates auto - zero techniques. the reference is trimmed in production to minimize errors caused by component mismatch and drift. the result is a voltage output with a predictable temperature coefficient. the amplifier within the reference is chopper stabilized, i.e. the polarity can be switched by the mpu using chop_e [1:0] ( i/o ram 0x2002[5:4]) . the chop_e [1:0] field enable s the mpu to operate the chopper circuit in regular or inverted operation, or in toggling mode. when the chopper cir cuit is toggled in between multiplexer cycles, dc offsets on the measured signals will automatically be averaged out. the general topology of a chopped amplifier is shown in figure 2 . figure 2 : general topology of a chopped amplifier it is assumed that an offset voltage voff appears at the positive amplifier input. with all switches, as con trolled by cross, in the a position, the output voltage is: voutp C voutn = g (vinp + voff C vinn) = g (vinp C vinn) + g voff with all switches set to the b position by applying the inverted cross signal, the output voltage is: voutn C voutp = g (vinn C vinp + voff) = g (vinn C vinp) + g voff, or voutp C voutn = g (vinp C vinn) - g voff thus, when cross is toggled, e.g. after each multiplexer cycle, the offset will alternatel y appear on the output as positive and negative, which results in the offset effectively being eliminated, regardless of its polarity or magnitude. when cross is high, the connection of the amplifier input devices is revers ed. this preserves the overall polarity of that amplifier gain; it inverts its input offset. by alt ernately reversing the connection, the am plifiers offset is averaged to zero. this removes the most significant long - term drift mechanism in the voltage reference. the chop_e [1:0] field control s the behavior of cross. the cr oss signal will reverse the amplifier connection in the voltage reference in order to negate the effects of its offset. on the first ck32 rising edge after the last multiplexer state of its sequence, the multiplexer will wai t one additional ck32 cycle before beginning a new frame. at the beginning of this cycle, the value of cross will be updated according to the chop_e [1:0] field . the extra ck32 cycle allows time for the chopped vref to settle. during this cycle, muxsync is held high. the leading edge of muxsync initiates a pass through the ce program sequence . the beginning of the sequence is the serial readout of the four rtm words. g - + v inp v outp v outn v inn cross ab ab a b a b downloaded from: http:///
f ds_6533_6534_004 71m6533 /g / h and 71m6534 /h data sheet re v 2 13 chop_e [1:0] has four states: positive, reverse, and two toggle states. in the positive state, chop_ e [1:0] = 01, cross and chop_clk are held low. in the reverse state, chop_e [1:0] = 10, cross and chop_clk are held high. in the first toggle state, chop_e [1:0] = 00, cross is automatically toggled near the end of each multiplexer frame and an alt frame is forced during the las t multiplexer frame in each sum cycle. it is desirable that cross take on alternate values during each alt frame. for this reason, if chop_e [1:0] = 00, cross will not toggle at the end of the multiplexer frame immediately preceding the alt frame in each accumulation interval . figure 3 : cross signal with chop_e[1:0] = 00 figure 3 shows cross over two accumulation interval s when chop_e [1:0] = 00 . at the end of the first in ter val, cross is low, at the end of the second interval, cross is hi gh. the offset error for the two temperature measurements taken during the alt multiplexer frames will be averaged to zer o. note that the number of multiplexer frames in an accumulation interval is alw ays even. operation with chop_e [1:0] = 00 does not require control of the chopping mechanism by the mpu while eliminating the offset for temperature measurement. in the second toggle state, chop_e [1:0] = 11, no alt frame is forced during the last m ultiplexer cycle in a n accumulation interval, and cross always toggles near the end of each multiplexer frame. the internal bias voltage , vbias (typically 1.6 v), is used by the adc as a reference when measuring the temperature and battery monitor signals. 1.2.6 temperature sensor the 71m6533 and 71m6534 include an on - chip temperature sensor implemented as a bandgap reference. it is used to determine the die temperature. the mpu may request an alternate mult iplexer cycle containing the temperature sensor output by asserting mux_alt . the primary use of the temperature data is to determine the magnitude of compensation required to offset the thermal drift in the system (see section 3.5 temperature compensation ). 1.2.7 battery monitor the battery voltage is measured by the adc during alternative multiplexer frames if the bme (battery measure enable) bit in the i/o ram is set. while bme is set, an on - chip 45 k ? load res istor is applied to the battery and a scaled fraction of the battery voltage is applied to the adc input. after each alternative mux frame, the result of the adc conversion is available at xram address 0x0b . bme is ignored and assumed zero when system power is not available (v1 < vbias). see section 6.4.5 f or details regarding the adc lsb size and the conversion accuracy. 1.2.8 afe functional description the afe functions as a data acquisition system, controlled by the mpu. the main signals (ia, va, ib, vb , etc. ) are sampled and the adc counts obtained are stored in xram where they can be accessed by the ce and, if necessary, by the mpu. alternate multiplexer cycles are initiated less frequently by the mpu to gather access to the slow temperature and battery signals. figure 4 shows the block diagram of the afe. multiplexer frames accumulation interval n accumulation interval n+1 2 4 3 25192520 1 2 4 3 25192520 1 alternative mux cycle multiplexer frames alternative mux cycle cross cross downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 14 re v 2 ? adc converter vref vb_refadc_e mux vref vbias temp vref vbias vref_calvref_dis vbat vadc equmux_alt mux_div 22 fir fir_len ibp vb icp vc iap va ian ibn icn idn idp figure 4 : afe block diagram 1.3 digital computation engine (ce) the ce, a dedicated 32 - bit signal processor, performs the precision computations necessary to ac curately measure energy. the ce calculations and processes include: ? multiplication of each current sample with its associated voltage sample to obtain the energy per sample (when multiplied wi th the constant sample time). ? frequency - insensitive delay cancellation on all six channels (to compensate for the delay bet ween samples caused by the multiplexing scheme). ? 90 phase shifter (for var calculations). ? pulse generation. ? monitoring of the input signal frequency (for frequency and phase information). ? monitoring of the input signal amplitude (for sag detection). ? scaling of the processed samples based on calibration coefficients. scaling of all samples based on temperature compensation information . the ce program resides in flash memory. common access to flash memory by the ce and mpu is controlled by a memory share circuit. each ce instruction word is two bytes long. allocated flash space for the ce program cannot exceed 4096 16 - bit words ( 8 kb). the ce program counter begins a pass through the ce code each time multiplexer state 0 begins. the code pass ends when a halt instruction is executed. for proper operation, the code pass must be completed before the multiplexer cycle ends (see sect ion 2.2 system timing summary ). the ce program must begin on a 1 - kb boundary of the flash address. the i/o ram register ce_lctn[7:0] defines which 1 - kb boundary contains the ce code. thus, the first ce instruction is located at 1024* ce_lctn[7:0]. the ce can access up to 4 kb of data ram (xram) , or 1024 32 - bit data words, starting at ram address 0x0000. the xram can be accessed by the fir filter block , the rtm circuit, the ce, and the mpu. assigned time slots are re served for fir and mpu, respectively, to prevent bus contention for xram data access . the mpu can read and write the xram shared between the ce and mpu as the primary means of data communication between the two processors. table 4 shows the ce addresses in xram allocated to analog inputs from the afe. downloaded from: http:///
f ds_6533_6534_004 71m6533 /g / h and 71m6534 /h data sheet re v 2 15 table 4: xram locations for adc results address (hex) name description 0x00 ia phase a current 0x01 va phase a voltage 0x02 ib phase b current 0x03 vb phase b voltage 0x04 ic phase c current 0x05 vc phase c voltage 0x06 id neutral current 0x07 C 0x09 C not used 0x0a temp temperature 0x0b vbat battery voltage the ce is aided by support hardware to facilitate implementation of equations, pulse counters , and ac cumulators. this hardware is controlled through i/o ram locations equ [2:0] (equation assist), th e dio_pv and dio_pw (pulse count assist ) bits , and pre_samps [1:0] and sum_cycles [5:0] (accumulation assist). pre_samps[1:0] and sum_cycles [5:0] support a dual - level accumulation scheme where the first accumulator accumulates results from pre_samps [1:0] samples and the second accumulator accumulates up to sum_cycles[5:0] of the first accumulator results. the integration time for each energy output is pre_samps [1:0] * sum_cycles[5:0] / 2520.6 (with mux_div [3:0] = 6 ). ce hardware issues the xfer_busy interrupt when the accumulation is complete. 1.3.1 meter equations the 71m6533 and 71m6534 provide hardware assistance to the ce in order to support various meter equations. this assistance is controlled through the i/o ram field equ [2:0] (equation assist). the com pute engine (ce) firmware for industrial configurati ons can implement the equations listed in table 5 . equ [2:0] specifies the equation to be used based on the meter configuration and on the numbe r of phases used for metering. table 5: inputs selected in regular and alternate multiplexer cycles equ [2:0] description wh and varh formula mux sequence alt mux sequence element 0 element 1 element 2 0 1 element, 2 w, 1 with neutral current sense va ? ia va ? ib n/a sequence is programmable with slotn_sel[3:0] sequence is programmable with slotn_alt sel[3:0] 1 1 element, 3 w, 1 va(ia - ib)/2 n/a n/a 2 2 element, 3 w, 3 delta va ? ia vb ? ib n/a 3 2 element, 4 w, 3 delta va(ia - ib)/2 n/a vc ? ic 4 2 element, 4 w, 3 wye va(ia - ib)/2 vb(ic - ib)/2 n/a 5 3 element, 4 w, 3 wye va ? ia vb ? ib vc ? ic not all ce codes support all equations. downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 16 re v 2 1.3.2 real - time monitor the ce contains a real - time monitor (rtm), which can be programmed to monitor four selectable x ram locations at full sample rate. the four monitored locations are serially output to the tmuxout pin via the digital output multiplexer at the beginning of each ce code pass. the rtm can be enabled and disabled with the rtm_e bit . the rtm output is clocked by cktest (pin seg19/cktest), with the clock output enabled by setting ckout_e = 1 . each rtm word is clocked out in 35 cycles and contains a leading flag bit. see figure 20 for the rtm output format. rtm is low when not in use. 1.3.3 pulse generator s the 71m6533 and 71m6534 provide fou r pulse generators, rpulse, wpulse, xpulse and ypulse, as well as hardware support for the rpulse and wpulse pulse generators . the pulse generators can be used to output ce status indicators, sag for example , to dio pins. the polarity of the pulses may be inverted with pl s_inv bit . when this bit is set, the pulses are active high, rather than the more usual active low. pls_inv inverts all the pulse outputs. xpulse and ypulse pulses generated by the ce may be exported to the xpulse and ypulse pulse outputs. pins dio8 an d dio9 are used for these pulses. generally, the xpulse and ypulse outputs are updated once on each pass of the ce code, resulting in a pulse frequency up to a maximum of 1260hz (assuming a mux frame is 13 ck32 cycles). standard ce code permits the selection of either an energy indication or signaling of a sag event for the ypulse output. this method is faster than checking the sag bits by the mpu at every ce_busy interrupt. see section 5.3 ce interface description for details. rpulse and wpulse during each ce code pass, the hardware stores exported wpulse and rpulse sign bits in an 8 - bit fifo and outputs them at a specified interval. this permits the ce code to calculate the rpulse and wpulse outputs at the beginning of its code pass and to rely on hardware to spread them over the mux frame. the fifo is reset at the beginning of each mux frame. the pls_interval register controls the de lay to the first pulse update and the interval between subsequent updates. the lsb of this register is equivalent to 4 ck_fir cycles. if zero, the fifo is deactivated and the pul se outputs are updated immediately. thus, n interval is 4 * pls_interval . since the fifo resets at the beginning of each mux frame, the user must specify pls_interva l so that all of the pulse updates are output before the mux frame completes. for instance, if the c e code outputs 6 updates per mux interval, and if the mux interval is 1950 cycles long, the ideal value for the interv al is 1950/6 /4 = 81 .2 5. if pls_interval = 82 , the fifth output will occur too late and be lost. in this case, the proper value for pls_interval is 81 . hardware also provides a maximum pulse width feature . the pls_maxwidth register selects a maximum negative pulse width to be nmax updates according to the formula: nmax = (2 * pls_maxwidth + 1). if pls_maxwidth = 255, no width checking is performed. the wpulse and rpulse pulse generator outputs are available on dio6 and dio 7, respectively. they can also be output on opt_tx (see opt_txe[1:0] for details). 1.3.4 data ram (xram) t he ce and mpu use a single general - purpose data ram (also referred to as xram) . the data ram is 1024 32 - bit words, shared between the ce and the mpu using a time - multi plex method. this reduces mpu wait states when accessing ce data. when the mpu and ce a re clocking at maximum frequency (10 mhz), the dram will make up to four accesses during each 100 ns interval. these consist of two mpu accesses, one ce access and one spi access. downloaded from: http:///
f ds_6533_6534_004 71m6533 /g / h and 71m6534 /h data sheet re v 2 17 the data ram is 32 bits wide and uses an external multiplexer so as to appear byte - wide to the mpu. the data ram hardware will convert an mpu byte write operation into a read - modify - write operation that requires two data ram accesses. the second access is guaranteed to be available because the mpu cannot access the xram on two consecutive instructions unless it is using the same address. in addition to the reduction of wait states, this arrangement permits the mpu to easily use unneeded ce data memory. likewise, the amount of memory the ce uses is not limited by the size of a dedicated ce data ram. 1.3.5 ce functional overview the adc processes one sample per channel per multiplexer cycle. figure 5 shows the timing of the samples taken during one multiplexer cycle (phases a, b, and c being processed). during an alt mul tiplexer sequence, missing samples are filled in by the ce. the num ber of samples processed during one accumulation cycle is controlled by pre_samps [1:0] ( i/o ram 0x2001[7:6] ) and sum_cycles [5:0] ( i/o ram 0x2001[5:0]) . the integration time for each energy out put is : pre_samps [1:0] * sum_cycles[5:0] / 2520.6, where 2520.6 is the sample rate in hz for example, pre_samps [1:0] = 42 and sum_cycles [5:0] = 50 will establish 2100 samples per accumulation cycle. pre_samps [1:0] = 100 and sum_cycles[5:0] = 21 will result in the exact same accumulation c ycle of 2100 samples or 833 ms. after an accumulation cycle is completed, the xfer_busy interrupt signals to the mpu that accumulated data are available. figure 5 : samples from multiplexer cycle the end of each multiplexer cycle is signaled to the mpu by the ce_busy inter rupt. at th e end of each multiplexer cycle , status information, such as sag data and the digitized input signal, is a vailable to the mpu. va vb ib vc ic ia 1/2520.6hz = 397s 2/32768hz = 61.04s 13/32768hz = 397s per mux cycle a c b va vb ib vc ic ia 1/2520.6hz = 397s 2/32768hz = 61.04s 13/32768hz = 397s per mux cycle a c b downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 18 re v 2 figure 6 : a ccumulation interval figure 6 shows the accumulation interval resulting from pre_samps [1:0] = 42 and sum_cycles [5:0] = 50, consisting of 2100 samples of 397s each, followed by the xfer_busy interrupt. the sampling in t his example is applied to a 50 hz signal. there is no correlation between the line signal frequency and the choice of pre_samps [1:0] or sum_cycles [5:0] ( even though when sum_cycles [5:0] = 42 , one set of sum_cycles happens to sample a period of 16.6 ms). furthermore, sampling does not have to start when the line voltage crosses the zero line, and the length of the accumulation interval need not be an integer multiple of the signal cyc les. 1.3.6 delay compensation when measuring the energy of a phase (i.e., wh and varh) in a service, the voltage and current for that phase must be sampled at the same instant. otherwise, the phase difference, , intr oduces errors. o delay o delay f t t t 360 360 ? ? = ? = where f is the frequency of the input signal and t delay is the sampling delay between voltage and current. in t raditional meter ics, sampling is accomplished by using two a/d converters per phase (one for voltage and the other one for current) controlled to sample simultaneously. our single converter technolog y , however, exploits the 32 - bit signal processing capability of its ce to implement constant delay all - pass filters. the se all - pass filter s correct for the conversion time difference between the voltage and the corresponding current samples that are obtained with a single multiplexed a/d converter. the constant delay all - pass filter s provide a broad - band delay that is precisely matched to the differ - ence in sample time between the voltage and the current of a given phase. this digital filter does not affect the amplitude of the signal, but provides a precisely controlled phase response. the delay compensation implemented in the ce aligns the voltage samples with their corresponding current samples by routing the voltage samples through the all - pas s filter, thus delaying the voltage samples by , resulting in the residual phase error C . the residual phase error is negligible, and is typically less than 1.5 milli degrees at 100hz, thus it does not contribute to errors in the energy measurements . xfer_busy interrupt to mpu 20ms 833ms downloaded from: http:///
f ds_6533_6534_004 71m6533 /g / h and 71m6534 /h data sheet re v 2 19 1.4 80515 mpu core the 71m6533 and 71m6534 include an 80515 mpu (8 - bit, 8051 - compatible) that processes most instructions in one clock cycle. using a 10 mhz clock results in a processing throughput of 10 mips . the 80515 architecture eliminates redundant bus states and implements parallel execution of fetch and execution phases. normally , a machine cycle is aligned with a memory fetch, therefore, most of the 1 - byte instructions are performed in a single machine cycle (mpu clock cycle). this leads to an 8x average performance im prove ment (in terms of mips) over the intel ? 8051 device running at the same clock frequency. table 6 shows the ckmpu frequency as a function of the allowed combinations of the mpu clock divider mpu_div[2:0] and the mck divider bits m40mhz and m26mhz . actual processor clocking speed can be adjusted to the total processing demand of the application (metering calculations, amr management, memory management, lcd driver management and i/o management) using the i/o ram field mpu_div[2:0] and the mck divider bits m40mhz and m26mhz , as shown in table 6 . table 6 : ckmpu clock frequencies mpu_div [2:0] [ m40mhz, m26mhz ] values [1,0] [0,1] [0,0] 000 9.8304 mhz 6.5536 mhz 4.9152 mhz 001 4.9152 mhz 3.2768 mhz 2.4576 mhz 010 2.4576mhz 1.6384 mhz 1.2288 mhz 011 1.2288 mhz 819.2 khz 614.4 khz 100 614.4 khz 409.6 khz 307.2 khz 101 307.2 khz 204.8 khz 153.6 khz 110 153.6 khz 102.4 khz 76.8 khz 111 153.6 khz 102.4 khz 76.8 khz typical measurement and metering functions based on the results provided by the int ernal 32 - bit com pute engine (ce) are available for the mpu as part of maxim s teridian standard library , which provides demonstration source code to help reduce the design cycle. 1.4.1 memory organization and addressing the 80515 mpu core incorporates the harvard a rchitecture with separate code and data spaces. memory organization in the 80515 is similar to that of the industry standard 8051. there are four memory areas: program memory (flash, shared by mpu and ce), external ram (data ram, s hared by the ce and mpu , configuration or i/o ram ) and internal data memory (internal ram). table 7 shows the memory map. program memory the 80515 can address up to 64 kb of program memory space from 0x0000 to 0xffff . program memory is read when the mpu fetches instructions or performs a movc operation. access to program memory above 0x7fff is controlled by the fl_bank[ 2 :0] sfr register ( sfr 0xb6). after reset, the mpu starts program execution from program memory location 0x0000. the lower part of the program memory includes reset and interrupt vectors. the interrupt vectors are spac ed at 8 - byte in tervals, starting from 0x0003. mpu e xternal data memory (xram) both internal and external memory is physically located on the 71m6533/71m6534 device . the e x ternal memory referred to in this documentation is only external to the 80515 mpu core. 4 kb of ram starting at address 0x0000 is shared by the ce and mpu. the ce normally uses the first 1 kb, leaving 3 kb for the mpu. different versions of the ce code use varying amounts. consult the documentation for the specific code version being used for the exact limit. downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 20 re v 2 if the mpu overwrites the ces working ram, the ces output may be corrupted. if the ce is dis abled, the first 0x40 bytes of ram are still unusable while mux_div[3:0] 0 because the 71m6533/71m6534 adc writes to these locations . setting mux_div[3:0] = 0 disables the adc output , preventing the ce from writing the first 0x40 bytes of ram . the 80515 writes into external data memory when the mpu executes a movx @ri,a or movx @dptr,a instruction. the mpu reads external data memory by executing a movx a,@ri or movx a,@dptr instruction (sfr pdata provides the upper 8 bytes for the movx a,@ri instruction). internal and external memory map table 7 shows the address, type, use and size of the various memory components. only the memory ranges shown in table 7 contain physical memory. table 7 : memory map address (hex) memory technology memory type name typical usage memory size (bytes) 00000 - 1ffff flash memory non - volatile program memory mpu program and non - volatile data 128 kb 0 0000 - 3ffff ? flash memory non - volatile program memory mpu program and non - volatile data 256 kb ? on 1k boundary flash memory non - volatile program memory ce program 8 kb max. 0000 - 0fff static ram volatile external ram (xram) shared by ce and mpu 4 kb 2000 - 20bf, 20c8 - 20ff static ram volatile configuration ram ( i/o ram ) hardware control 256 20c0 - 20c7 static ram non - volatile (battery) configuration ram ( i/o ram ) battery - buffered memory 8 0000 - 00ff static ram volatile internal ram part of 80515 core 256 ? for the 71m6534 only. movx addressing there are two types of instructions differing in whether they provide an 8 - bit or 16 - bit indirect address to the external data ram. in the first type, movx a,@ri, the contents of r0 or r1 in the current register bank provide the eight lower - ordered bits of address. the eight high - ordered bits of the address are specified with the pdata sfr. this method allows the user paged access (256 pages of 256 bytes each) to all ranges of the external data ram. in the second type of movx instruction, movx a,@dptr, the data pointer generates a 16 - bit address. this form is faster and more efficient when accessing very large data arrays (up to 6 4 kb ), since no additional instructions are needed to set up the eight high ordered bits of the address. it is possible to mix the two movx types. this provides the user with four separate data point ers, two with direct access and two with paged access, to the entire 64 kb of external memory range. dual data pointer the dual data pointer accelerates the block moves of data. the standard dptr is a 16 - bit register that is used to address external memory or peripherals. in the 80515 core, the standard data pointer is called dptr , the second data pointer is called dptr1 . the data pointer select bit, located in the lsb of the dps register ( dps [0] ), chooses the active pointer. dptr is selected when dps [0] = 0 and dptr1 is selected when dps [0] = 1. downloaded from: http:///
f ds_6533_6534_004 71m6533 /g / h and 71m6534 /h data sheet re v 2 21 the us er switches between pointers by toggling the lsb of the dps register. the values in the data pointers are not affected by the lsb of the dps register. all dptr related instructions use the currently selected dptr for any activity. the second data pointer may not be supported by certain compilers. dptr1 is useful for copy routines, where it can make the inner loop of the routine two instructions faster compared to the reloading of dptr from registers . any interrupt routine using dptr1 must save and restore dps , dptr and dptr1 , which increases stack usage and slows down interrupt latency. by selecting the evatronics r80515 core in the keil compiler project settings and by using the compiler directive modc2, dual data pointers are enabled in certain library routines. an alternative data pointer is available in the form of the pdata register (sfr 0xbf, sometimes referred to as usr2 ). it defines the high byte of a 16 - bit address when reading or writing xdata with the instruction m ovx a,@ri or movx @ri,a. internal data memory map and access the internal data memory provides 256 bytes (0x00 to 0xff) of data memory . the internal data memory address is always 1 byte wide . table 8 shows the internal data memory map. the special function registers (sfr) occupy the upper 128 bytes. the sfr area of in ternal data memory is available only by direct addressing . indirect addressing of this area accesses the upper 128 bytes of internal ram . the lower 128 bytes contain working registers and bit addressable memory . the lower 32 bytes form four banks of eight registers (r0 - r7). two bits on the program memory sta tus word ( psw ) select which bank is in use . the next 16 bytes form a block of bit addressable memory space at addresse s 0x00 - 0x7f . all of the bytes in the lower 128 bytes are accessible through direct or indirect addressing . table 8 : internal data memory map address range direct addressing indirect addressing 0x80 0xff special function registers (sfrs) ram 0x30 0x7f byte addressable area 0x20 0x2f bit addressable area 0x00 0x1f register banks r0r7 1.4.2 special function registers (sfrs) a map of the special function registers is shown in table 9 . only a few addresses in the sfr memory space are occupied, the others are not im plemented. a read access to unimplemented addresses will return undefined data, while a write access will have no effect. sfrs specific to the 71m6533/71m6534 are shown in bold print on a gray field . the registers at 0x80, 0x88, 0x90, etc., are bit a ddressable, all others are byte addressable. see the restrictions for the intbits register in table 14 . table 9 : special function register map hex/ bin bit addressable byte addressable bin/ hex x000 x001 x010 x011 x100 x101 x110 x111 f8 intbits ff f0 b f7 e8 iflags ef e0 a e7 downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 22 re v 2 hex/ bin bit addressable byte addressable bin/ hex x000 x001 x010 x011 x100 x101 x110 x111 d8 wdcon df d0 psw d7 c8 t2con cf c0 ircon c7 b8 ien1 ip1 s0relh s1relh pdata bf b0 p3 flshctl fl_bank pgadr b7 a8 ien0 ip0 s0rell af a0 p2 dir2 dir0 a7 98 s0con s0buf ien2 s1con s1buf s1rell eedata eectrl 9f 90 p1 dir1 dps erase 97 88 tcon tmod tl0 tl1 th0 th1 ckcon 8f 80 p0 sp dpl dph dpl1 dph1 pcon 87 1.4.3 generic 80515 special function registers table 10 shows the location, description and reset or power - up value of the generic 80515 sfrs. additional descriptions of the registers can be found at the page numbers listed in the table. table 10 : generic 80515 sfrs - location and reset values name address (hex) reset value (hex) description page p0 0x80 0xff port 0 24 sp 0x81 0x07 stack pointer 24 dpl 0x82 0x00 data pointer low 0 24 dph 0x83 0x00 data pointer high 0 24 dpl1 0x84 0x00 data pointer low 1 24 dph1 0x85 0x00 data pointer high 1 24 pcon 0x87 0x00 uart speed control, idle and stop mode control 28 tcon 0x88 0x00 timer/counter control 32 tmod 0x89 0x00 timer mode control 29 tl0 0x8a 0x00 timer 0, low byte 29 tl1 0x8b 0x00 timer 1, high byte 29 th0 0x8c 0x00 timer 0, low byte 29 th1 0x8d 0x00 timer 1, high byte 29 ckcon 0x8e 0x01 clock control (stretch=1) 24 p1 0x90 0xff port 1 24 dps 0x92 0x00 data pointer select register 20 s0con 0x98 0x00 serial port 0, control register 28 s0buf 0x99 0x00 serial port 0, data buffer 26 ien2 0x9a 0x00 interrupt enable register 2 31 s1con 0x9b 0x00 serial port 1, control register 28 s1buf 0x9c 0x00 serial port 1, data buffer 26 s1rell 0x9d 0x00 serial port 1, reload register, low byte 26 p2 0xa0 0xff port 2 24 downloaded from: http:///
f ds_6533_6534_004 71m6533 /g / h and 71m6534 /h data sheet re v 2 23 name address (hex) reset value (hex) description page ien0 0xa8 0x00 interrupt enable register 0 31 ip0 0xa9 0x00 interrupt priority register 0 34 s0rell 0xaa 0xd9 serial port 0, reload register, low byte 26 p3 0xb0 0xff port 3 24 ien1 0xb8 0x00 interrupt enable register 1 31 ip1 0xb9 0x00 interrupt priority register 1 34 s0relh 0xba 0x03 serial port 0, reload register, high byte 26 s1relh 0xbb 0x03 serial port 1, reload register, high byte 26 pdata 0xbf 0x00 high address byte for movx@ri - also called usr2 20 ircon 0xc0 0x00 interrupt request control register 32 t2con 0xc8 0x00 polarity for int2 and int3 32 psw 0xd0 0x00 program status word 23 wdcon 0xd8 0x00 baud rate control register (only wdcon[ 7] bit used) 26 a 0xe0 0x00 accumulator 23 b 0xf0 0x00 b register 23 accumulator ( acc , a , sfr 0xe0 ): acc is the accumulator register. most instructions use the accumulator to hold the operand. the mne monics for accumulator - specific instructions refer to accumulator as a , not acc . b register ( sfr 0xf0 ): the b register is used during multiply and divide i nstructions. it can also be used as a scratch - pad register to hold temporary data. program status word ( psw , sfr 0xd0) ): this register contains various flags and control bits for the selection of the register banks (see table 11 ). table 11 : psw bit functions (sfr 0xd0) psw bit symbol function 7 cv carry flag . 6 ac auxiliary carry flag for bcd operations . 5 f0 general purpose flag 0 available for user. f0 is not to be confused with the f0 flag in the cestatus register. 4 rs1 register bank select control bits . the contents of rs1 and rs0 select the working register bank: rs1/rs0 bank selected location 00 bank 0 0x00 C 0x07 01 bank 1 0x08 C 0x0f 10 bank 2 0x10 C 0x17 11 bank 3 0x18 C 0x1f 3 rs0 2 ov overflow flag . 1 C user defined flag . 0 p parity flag, affecte d by hardware to indicate odd or even number of one bits in the accumulator, i.e. even parity. downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 24 re v 2 s tack pointer ( sp , sfr 0x81 ): the stack pointer is a 1 - byte register initialized to 0x07 after reset . this register is incremented before push and call instructions, causing the stack to begin at location 0x08. data pointer: the data pointer s ( dptr and dprt1 ) are 2 bytes wide . the lower part is dpl (sfr 0x82) and dpl1 (sfr 0x84 ) and the highest is dph (sfr 0x83) and dph1 (sfr 0x85) . the data pointers can be loaded as two registers (e.g. mov dpl,#data8) . they are generally used to access external code or data space (e.g. movc a,@a+dptr or movx a,@dptr respectively). program counter: the program counter ( pc ) is 2 bytes wide and initialized to 0x0000 after reset . th e pc is incremented when fetching operation code or when operating on data from program memory . port registers: the i/o ports are controlled by special function registers p0 , p1 and p2 , as shown in table 12 . the contents of the sfr can be observed on corresponding pins on the chip . writing a 1 to any of the ports causes the corresponding pin to be at high level (v3p3). writing a 0 causes the corres ponding pin to be held at a low level (gnd) . the data direction registers dir0 , dir1 , and dir2 define individual pins as input or output pins (see section 1.5.7 digital i/o for details). table 12 : port registers register sfr address r/w description p0 0x80 r/w register for port 0 read and write operations . dir0 0xa2 r/w data direction register for port 0 . setting a bit to 1 means that the corresponding pin is an output. p1 0x90 r/w register for port 1 read and write operations . dir1 0x91 r/w data direction register for port 1. p2 0xa0 r/w register for port 2 read and write operations . dir2 0xa1 r/w data direction register for port 2. all dio ports on the chip are bi - directional . each of them consists of a latch (sfr p0 to p2 ), an output driver and an input buffer, therefore the mpu can output or read data through any of these ports . even if a dio pin is configured as an output, the state of the pin can still be read by the mpu, for example when counting pulses issued via dio pins that are under ce control. the technique of reading the status of or generating interrupts based on dio pins configured as outputs can be used to implement pulse counting . clock stretching ( ckcon [2:0], sfr 0x8e ) the ckcon [2:0] field define s the stretch memor y cycles that are used for movx instructions when accessing external peripherals. the practical value of this field for the 71m6533/71m6534 is to guarantee access to xram between ce, mpu, and spi. the default setting of ckcon[2:0] (001) should not be changed. table 13 shows how the signals of the external memory interface change when stretch values are set from 0 to 7. the widths of the signals are counted in mpu clock cycles. the post - reset state of the ckcon[2:0] register (001) , which is shown in bold in the table, performs the movx instructions with a stretch value equal to 1. downloaded from: http:///
f ds_6533_6534_004 71m6533 /g / h and 71m6534 /h data sheet re v 2 25 table 13 : stretch memory cycle width ckcon[2:0] stretch value read s ignal w idth write s ignal w idth memaddr memrd memaddr memwr 000 0 1 1 2 1 001 1 2 2 3 1 010 2 3 3 4 2 011 3 4 4 5 3 100 4 5 5 6 4 101 5 6 6 7 5 110 6 7 7 8 6 111 7 8 8 9 7 1.4.4 71m6533/71m6534 -s pecific special function registers table 14 shows the location and description of the 71m6533/71m6534 - specific sfrs. table 14 : 71m6533/71m6534 specific sfrs register (alternate name) sfr add ress bit field name r/w description eedata 0x9e r/w i 2 c eeprom interface data register. eectrl 0x9f r/w i 2 c eeprom in terface control register. see section 1.5.10 eeprom interface for a description of the command and status bits available for eectrl . erase (flsh_erase) 0x94 w this register is used to initiate either the flash mass erase cycle or the flash page erase cycle. see the flash memory section for details. fl_bank [2 :0] 0xb6[2:0] r/w flash bank selection. pgaddr (flsh_pgadr) 0xb7 r/w flash page erase address register. contains the flash memory page address (page 0 through page 127) that will be erased during the page erase cycle (default = 0x00). must be re - written for each new page erase cycle. flshcrl 0xb2[0] flsh_pwe r/w program write enable: 0: movx commands refer to xram space, normal operation (default). 1: movx @dptr,a moves a to program space (flash) @ dptr. 0xb2[1] flsh_meen w mass erase enable: 0: mass erase disabled (default). 1: mass erase enabled. must be re - written for each new mass erase cycle. 0xb2[4] wrprot_ce * protects flash from address ce_lctn *1024 to the end of memory from flash page erase. 0xb2[5] wrprot_bt * protects flash from address 0 to address boot_size *1024 from flash page erase. 0xb2[6] secure r/w enables security provisions that prevent external reading of flash memory and ce program ram. this bit is reset on chip reset and may only be set. attempts to write zero are ignored. 0xb2[7] preboot r indicates that the preboot sequence is active. * the wrprot_ce and wrprot_bt bits can only be cleared when the secure bit is not set. when secure = 1, wrprot_ce and wrprot_bt can only be set to 1. a hardware reset is required to clear these bits if secure = 1. downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 26 re v 2 register (alternate name) sfr add ress bit field name r/w description iflags 0xe8[0] ie_xfer r/w this flag mo nitors the xfer_busy interrupt. it is set by hardware and must be cleared by the in terrupt handler. 0xe8[1] ie_rtc r/w this flag mo nitors the rtc_1sec inter rupt. it is set by hardware and must be cleared by the in terrupt handler. 0xe8[2] fw_ col 1 r/w this flag indicates that a flash write was in progress while the ce was busy. 0xe8[3] fw_ col 0 r/w this flag indicates that a flash write was attempted when the ce was attempting to be gin a code pass. 0xe8[4] ie_pb r/w this flag indicates that the wake - up pushbutton was pressed. 0xe8[5] ie_wake r/w this flag indicates that the mpu was awakened by the autowake timer. 0xe8[6] pll_rise r/w pll_rise interrupt flag: write 0 to c lear the pll_rise interrupt flag . 0xe8[7] pll_fall r/w pll_fall interrupt flag: write 0 to c lear the pll_fall interrupt flag . intbits (int0 int6) 0xf8[6:0] int6 int0 r interrupt inputs. the mpu may read these bits to see the status of external interrupts int0 up to int6. these bits do not have any memory and are primarily intended for debug use. 0xf8[7] wd_rst w the wdt is reset when a 1 is written to this bit. only byte operations on the entire intbits register should be used when writing. the byte must have all bits set except the bits that are to be cleared. 1.4.5 instruction set all instructions of the generic 8051 microcontroller are supported . a complete list of the instruction set and of the associated op - codes is contained in the 71m653 x software users guide (sug) . 1.4.6 uarts the 71m6533 and 71m6534 include a uart (uart0) that can be programmed to communicate with a variety of amr modules and other external devices . a second uart (uart1) is connected to the optical port, as described in the 1.5.6 optical interface section. the uarts are dedicated 2 - wire serial interfaces, which can communicate with an external host processor at up to 38,400 bits/s (with mpu clock = 1.2288 mhz) . the operation of the r x and tx uart0 pins is as follows: ? uart0 rx: serial input data are applied at this pin . conforming to rs - 232 standard, the bytes are input lsb first. ? uart0 tx: this pin is used to output the serial data . the bytes are output lsb first. the 71m6533 and 71m6534 have several uart - related registers for the control and buffering of serial data . a single sfr register serves as both the transmit buffer and receive buffer ( s0buf, sfr 0x99 for uart0 and s1buf, sfr 0x9c for uart1). when written by the mpu, sxbuf acts as the transmit buffer, and when read by the mpu, it acts as the receive buffer. writing data to the transmit buffer starts the transmission by the associated uart. received data are available by reading from the receive buffer. both uarts can simultaneously transmit and receive data. downloaded from: http:///
f ds_6533_6534_004 71m6533 /g / h and 71m6534 /h data sheet re v 2 27 wdcon [7] selects whether timer 1 or the internal baud rate generator is used . all uart transfers are pro grammable for parity enable, parity, 2 stop bits/1 stop bit and xon/xo ff options for variable commu nication baud rates from 300 to 38400 bps . table 15 shows how the baud rates are calculated . table 16 shows the selectable uart operation modes. table 15 : baud rate generation using timer 1 ( wdcon [7] = 0) using internal baud rate generator ( wdcon [7] = 1) uart0 2 smod * f ckmpu / (384 * (256 - th1 )) 2 smod * f ckmpu /(64 * (2 10 - s0rel )) uart1 n/a f ckmpu /(32 * (2 10 - s1rel )) s0rel and s1rel are 10 - bit values derived by combining bits from the respective timer reload registers ( s0rell, s0relh, s1rell, s1relh ). smod is the smod bit in the sfr pcon register . th1 is the high byte of timer 1. table 16 : uart modes uart 0 uart 1 mode 0 n/a start bit, 8 data bits, parity, stop bit, variable baud rate (internal baud rate generator) mode 1 start bit, 8 data bits, stop bit, variable baud rate (internal baud rate generator or timer 1) start bit, 8 data bits, stop bit, variable baud rate (internal baud rate generator) mode 2 start bit, 8 data bits, parity, stop bit, fixed baud rate 1/32 or 1/64 of f ckmpu n/a mode 3 start bit, 8 data bits, parity, stop bit, variable baud rate (internal baud rate generator or timer 1) n/a parity of serial data is available through the p flag of the accumulator . 7- bit serial modes with parity, such as those used by the flag protocol, can be simulated by setting and reading bit 7 of 8- bit output data . 7- bit serial modes without parity can be simulated by setting bit 7 to a constant 1 . 8- bit serial modes with parity can be simulated by setting and reading the 9 th bit, using the control bits tb80 ( s0con [ 3 ] ) and tb81 ( s1con [3] ) in the s0con ( sfr 0x98 ) and s1con ( sfr 0x9b ) sfrs for transmit and rb81 ( s1con [2] ) for receive operations . the feature of receiving 9 bits (mode 3 for uart0, mode a for uart1) can be used a s handshake signals for inter - processor communication in multi - processor systems. in th is case, the slave processors have bit sm20 ( s0con[5] ) for uart0, or sm21 ( s1con[5] for uart1, set to 1. when the master processor outputs the slaves address, it sets the 9 th bit to 1, causing a serial port receive interrupt in all the slaves. the slave processors compare the received byte with their address. if there is a match, the addres sed slave will clear sm20 or sm21 and receive the rest of the message. the rest of the slaves will ignore the message. after addressing the slave, the host outputs the rest of the message with t he 9 th bit set to 0, so no additiona l serial port receive interrupts will be generated. uart control registers: the function s of uart0 and uart1 depend on the setting of the serial port control register s s0con and s1con shown in table 17 and table 18 , respectively , and the pcon register shown in table 19 . since the ti0 , ri0 , ti1 and ri1 bits are in an sfr bit addressable byte, common practice would be to clear them with a bit operation, but this must be avoided . the hardware implements bit operations as a byte wide read - modify - write hardware macro. if an interrupt occurs after the read, but before the write, its flag will be cleared unintentionally. the proper way to clear these flag bits is to write a byte mask consisting of all ones except for a zero in the location of the bit to be cleared. the flag bits are configured in hardwa re to ignore ones written to them. downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 28 re v 2 table 17 : the s0con (uart0) register (sfr 0x98) bit symbol function s0con [7] sm0 the sm0 and sm1 bits set the uart0 mode: mode description sm0 sm1 0 n/a 0 0 1 8- bit uart 0 1 2 9- bit uart 1 0 3 9- bit uart 1 1 s0con [6] sm1 s0con [5] sm20 enables the inter - processor communication feature. s0con[4] ren0 if set, enables serial reception. cleared by software to disable reception. s0con[3] tb80 the 9th transmitted data bit in modes 2 and 3. set or cleared by the mpu, depending on the function it performs (parity check, multiprocessor com munication etc.) s0con[2] rb80 in modes 2 and 3 it is the 9 th data bit received. in mode 1, sm20 is 0, rb80 is the stop bit. in mode 0, this bit is not used. must be cleared by software. s0con[1] ti0 transmit interrupt flag; set by hardware after completion of a serial transfer. must be cleared by software. s0con[0] ri0 receive interrupt flag; set by hardware after completion of a serial reception. must be cleared by software. table 18 : the s1con (uart1) r egister (sfr 0x9b) bit symbol function s1con [7] sm sets the baud rate and mode for uart1. sm mode description baud rate 0 a 9- bit uart variable 1 b 8- bit uart variable s1con [5] sm21 enables the inter - processor communication feature. s1con [4] ren1 if set, enables serial reception . cleared by software to disable reception. s1con [3] tb81 the 9 th transmitted data bit in mode a. set or cleared by the mpu, de pending on the function it performs (parity check, multiprocessor communication etc.) s1con [2] rb81 in modes a and b, it is the 9 th data bit received . in mode b, if sm21 is 0, rb81 is the sto p bit . must be cleared by software s1con [1] ti1 transmit interrupt flag, set by hardware after completion of a serial transfer . must be cleared by software. s1con [0] ri1 receive interrupt flag, set by hardware after completion of a serial reception. m ust be cleared by software . table 19 : pcon register bit description (sfr 0x87) bit symbol function pcon[7] smod the smod bit doubles the baud rate when set pcon[6:2] C not used. pcon[1] stop stops mpu flash access and mpu peripherals including timers and uarts when set until an external interrupt is received. pcon[0] idle stops mpu flash access when set until an internal interrupt is received. downloaded from: http:///
f ds_6533_6534_004 71m6533 /g / h and 71m6534 /h data sheet re v 2 29 1.4.7 timers and counters the 80515 has two 16 - bit timer/counter registers: timer 0 and timer 1. these registers can be configur ed for counter or timer operations. in timer mode, the register is incremented every 12 mpu clock cycles . in counter mode, the register is in cremented when the falling edge is observed at the corresponding input sign al t0 or t1 (t0 and t1 are the timer gating inputs derived from certain dio pins, see section 1.5.7 digital i/o ). since it takes 2 machine cycles to recognize a 1 - to - 0 event, the maximum input count rate is 1/2 of the cl ock frequency (ckmpu) . there are no restrictions on the duty cycle, how ever to e nsure proper recognition of the 0 or 1 state, an input should be stable for at least 1 machine cycle. four operating modes can be selected for timer 0 and timer 1, as shown in table 20 and table 21 . the tmod register, shown in table 22 , is used to select the appropriate mode. the timer/counter operation is controlled by the tcon register, which is shown in table 23 . bits tr1 ( tcon [6] ) and tr0 ( tcon [4] ) in the tcon register start their associated timers when set. table 20 : timers/counters mode description m1 m0 mode function 0 0 mode 0 13 - bit counter/timer mode with 5 lower bits in the tl0 or tl1 register and the remaining 8 bits in the th0 or th1 register (for timer 0 and timer 1, respectively) . the 3 high order bits of tl0 and tl1 are held at zero. 0 1 mode 1 16 - bit counter/timer mode . 1 0 mode 2 8- bit auto - reload counter/timer . the reload value is kept in th0 or th1 , while tl0 or tl1 is incremented every machine cycle . when tl( x) overflows, a value from th( x) is copied to tl (x) (where x is 0 for counter/timer 0 or 1 for counter/timer 1 . 1 1 mode 3 if tim er 1 m1 and m0 bits are set to 1, timer 1 stops . if timer 0 m1 and m0 bits are set to 1, timer 0 acts as two independent 8- bit timer/counters. in mode 3, tl0 is affected by tr0 and gate control bits, and sets the tf0 flag on overflow, while th0 is affected by the tr1 bit, and the tf1 flag is set on overflow. table 21 specifies the combinations of operation modes allowed for timer 0 and timer 1. table 21 : allowed timer /counter mode combinations timer 1 mode 0 mode 1 mode 2 timer 0 - mode 0 yes yes yes timer 0 - mode 1 yes yes yes timer 0 - mode 2 not allowed not allowed yes table 22 : tmod register bit description (sfr 0x89) bit symbol function timer/counter 1 : tmod[7] gate if tmod[7] is set, external input signal control is enabled for counter 0. external gate control . the tr 1 bit in the tcon register (sfr 0x88) must also be set in order for counter 1 to increment. w ith these settings c ounter 1 is incremented on every falling edge o f the logic signal applied to one or more of the i n terrupt sources controlled by the di_rbp , dio_r1 , dio_rxx registers. tmod[6] c/t selects timer or counter operation. when set to 1, a counter operation is performed. when cleared to 0, the corresponding register will function as a downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 30 re v 2 timer. tmod[5:4] m1:m0 selec ts the mode for timer/counter 1 as shown in table 20 . timer/counter 0 tmod[3] gate if tmod[3 ] is set, external input signal control is enabled for counter 0. external gate control . the tr0 bit in the tcon register (sfr 0x88) must also be set in order for counter 0 to increment. w ith these settings c ounter 0 is incremented on every falling edge o f the logic signal applied to one or more of the i n terrupt sources controlled by the di_rbp , dio_r1 , dio_rxx registers. tmod[2] c/t selects timer or counter operation. when set to 1, a c ounter operation is performed. when cleared to 0, the corresponding register will function a s a t imer. tmod[1:0] m1:m0 selects the mode for timer/counter 0 , as shown in table 20 . table 23 : the tcon register bit functions (sfr 0x88) bit symbol function tcon[7] tf1 the timer 1 overflow flag is set by hardware when timer 1 overflows. this flag can be cleared by software and is automatically cleared when an interrupt is processed. tcon[6] tr1 timer 1 run control bit. if cleared, timer 1 stops. tcon[5] tf0 timer 0 overflow flag set by hardware when timer 0 overflows. this flag can be cleared by software and is automatically cleared when an interrupt is processed. tcon[4] tr0 timer 0 run control bit. if cleared, timer 0 stops. tcon[3] ie1 interrupt 1 edge flag is set by hardware when the falling edge on external pin int1 is observed. cleared when an interrupt is processed. tcon[2] it1 interrupt 1 type control bit set by the mpu. selects either the falling edge or low level on input pin to cause an external interrupt. tcon[1] ie0 interrupt 0 edge flag is set by hardware when the fa lling edge on external pin int0 is observed. cleared when an interrupt is processed. tcon[0] it0 interrupt 0 type control bit. selects either the falling edge or low level on input pin to cause interrupt. 1.4.8 wd timer (software watchdog timer) there is no int ernal software watchdog timer . use the standard watchdog timer instead (see section 1.5.12 hardware watchdog timer ). 1.4.9 interrupts t he 80515 mpu provides 11 interrupt sources with four priority levels . each source has its own request flag(s) located in a special function register ( tcon , ircon , and scon ) . each interrupt requested by the corresponding flag can be individually enabled or disabled by the enable bits in sfrs ien0 (sfr 0xa8) , ien1 (sfr 0xb8) , and ien2 (sfr 0x9a) . shows the device interrupt structure. referring to figure 7 , interrupt sources can originate from within the 80515 mpu core ( referred to as in ternal sources) or can originate from other parts of the 71m653x soc (referred to as externa l sources). there are seven external interrupt sources, as seen in the leftmost part of figure 7 , and in table 24 and table 25 (i.e. ex0 - ex6 ) i nterrupt overview when an interrupt occurs, the mpu will vector to the predetermined address as shown in table 36 . once the interrupt service has begun, it can be interrupted only by a higher priority i nterrupt. the interrupt service downloaded from: http:///
f ds_6533_6534_004 71m6533 /g / h and 71m6534 /h data sheet re v 2 31 is terminated by a return from instruction, reti . when an reti is performed, the processor will return to the instruction that would have been next when the interrupt occurred. when the interrupt condition occurs, the processor will also indicate this by setting a flag bit . this bit is set regardless of whether the interrupt is enabled or disabled . each interrupt flag is sampled once per machine cycle, then samples are polled by the hardware . if the sample indicates a pending interrupt when the interrupt is enabled, then the interrupt request flag is set. on the next instructio n cycle, the interrupt will be acknowledged by hardware forcing an lcall to the appropriate vector address, if the following conditions are met: ? no interrupt of equal or higher priority is already in progress. ? an instruction is currently being executed and is not completed. ? the instruction in progress is not reti or any write access to the registers ien0 , ien1 , ien2 , ip0 or ip1 . special function registers for interrupts the following sfr registers control the interrupt functions: ? the interrupt enable registers: ien0 , ien1 and ien2 (see table 24 , table 25 and table 26 ). ? the timer/counter control registers, tcon and t2con (see table 27 and table 28 ). ? the interrupt request r egister , ircon (see table 29 ). ? the interrupt priority registers: ip0 and ip1 (see table 34 ). table 24 : the ien0 bit functions (sfr 0xa8) bit symbol function ien0 [7] eal eal = 0 disable s all interrupts . ien0 [6] wdt not used for interrupt control . ien0 [5] C not used. ien0 [4] es0 es0 = 0 disable s serial channel 0 interrupt . ien0 [3] et1 et1 = 0 disable s timer 1 overflow interrupt . ien0 [2] ex1 ex1 = 0 disable s external interrupt 1 . ien0 [1] et0 et0 = 0 disable s timer 0 overflow interrupt . ien0 [0] ex0 e x0 = 0 disable s external interrupt 0 . table 25 : the ien1 bit functions (sfr 0xb8) bit symbol function ien1 [7] C not used. ien1 [6] C not used. ien1 [5] ex6 ex6 = 0 disables external interrupt 6 : xfer_busy, rtc_1sec, wd_nrovf ien1 [4] ex5 ex5 = 0 disable s external interrupt 5 : eeprom_busy ien1 [3] ex4 ex4 = 0 disable s external interrupt 4 : pll_ok (rise), pll_ok (fall) ien1 [2] ex3 ex3 = 0 disables external interrupt 3 : ce_busy ien1 [1] ex2 ex2 = 0 disables external interrupt 2 : fwcol0, fwcol1, spi ien1 [0] C not used. table 26 : the ien2 bit functions (sfr 0x9a) bit symbol function ien2[0] es1 es1 = 0 disable s the serial channel 1 interrupt . downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 32 re v 2 table 27 : tcon bit functions (sfr 0x88) bit symbol function tcon[7] tf1 timer 1 overflow flag . tcon[6] tr1 not used for interrupt control . tcon[5] tf0 timer 0 overflow flag . tcon[4] tr0 not used for interrupt control . tcon[3] ie1 external interrupt 1 flag . tcon[2] it1 external interrupt 1 type control bit : 0 = interrupt on low level. 1 = interrupt on falling edge. tcon[1] ie0 external interrupt 0 flag tcon[0] it0 external interrupt 0 type control bit : 0 = interrupt on low level. 1 = interrupt on falling edge. table 28 : the t2con b it functions (sfr 0xc8) bit symbol function t2con[7] C not used. t2con[6] i3fr polarity control for external interrupt 3: ce_busy 0 = falling edge. 1 = rising edge. t2con[5] i2fr polarity control for external interrupt 2: fwcol0 , fwcol1 , spi 0 = falling edge. 1 = rising edge. t2con[4:0] C not used. table 29 : the ircon bit functions (sfr 0xc0) bit symbol function ircon[7] C not used ircon[6] C not used ircon[5] iex6 1 = external interrupt 6 occurred and has not been cleared. irco n[4] iex5 1 = external interrupt 5 occurred and has not been cleared. ircon[3] iex4 1 = external interrupt 4 occurred and has not been cleared. ircon[2] iex3 1 = external interrupt 3 occurred and has not been cleared. ircon[1] iex2 1 = external interrupt 2 occurred and has not been cleared. ircon[0] C not used. tf0 and tf1 (timer 0 and timer 1 overflow flag s ) will be automatically cleared by hardware when the service routine is called (signals t0ack and t1ack C port isr C active high when the service routine is called). downloaded from: http:///
f ds_6533_6534_004 71m6533 /g / h and 71m6534 /h data sheet re v 2 33 external mpu interrupts the seven e xternal interrupts are the interrupts external to the 80515 core, i.e. signals that originate in other parts of the 71m6533/71m6534 , for example the ce, dio, rtc , eeprom interface. the external interrupts are connected as shown in table 30 . the polarity of interrupts 2 and 3 is pro grammable in the mpu via the i3fr and i2fr bits in t2con . interrupts 2 and 3 should be programmed for falling sensitivity ( i3fr = i2fr = 0). the generic 8051 mpu literature states that interrupts 4 through 6 are defined as rising - edge sensitive. thus, the hardware signals attached to interrupts 5 and 6 are in verted to achieve the edge polarity shown in table 30 . table 30 : external mpu interrupts external interrupt connection polarity flag reset 0 digital i/o high priority see section 1.5.7 automatic 1 digital i/o low priority see section 1.5.7 automatic 2 fwcol0, fwcol1 , spi falling automatic 3 ce_busy falling automatic 4 pll_ok (rising), pll_ok (falling) rising automatic 5 eeprom busy falling automatic 6 xfer_busy, rtc_1sec or wd_nr ovf falling manual external interrupt 0 and 1 can be mapped to pins on the device using dio resource maps. see section 1.5.7 digital i/o for more information. fwcolx interrupts occur when the ce collides with a flash write attempt . see the flash write description in the flash memory section for more detail. sfr enable bits must be set to permit any of these interrupts to occur . likewise, each interrupt has its own flag bit, which is set by the interrupt hardware, and reset by the mpu interrup t handler . xfer_busy, rtc_1sec, wd_nrovf, fwcol0, fwcol1, spi, pllrise and pllfall have their own enable and flag bits in addition to the interrupt 6, 4 and enable and flag bits (see table 31 ). ie0 through iex6 are cleared automatically when the hardware vectors to the interrupt handler . the other flags, ie_xfer through ie_pb , are cleared by writing a zero to them . since t hese bits are in an sfr bit addressable byte, common practice would be to clear them with a bit operation, but this must be avoided . the hardware implements bit operations as a byte wide read - modify - write hardware macro . if an interrupt occurs after the read, but before the write, its flag will be cleared un intentionally . the proper way to clear the flag bits is to write a byte mask consisting of all ones except for a zero in the location of the bit to be cleared . the flag bits are configured in hardware to ignore ones written to them. table 31 : interrupt enable and flag bits interrupt enable interrupt flag interrupt description n ame location n ame location ex0 sfr a8[0] ie0 sfr 88[1] external interrupt 0 ex1 sfr a8[2] ie1 sfr 88[3] external interrupt 1 ex2 sfr b8[1] iex2 sfr c0[1] external interrupt 2 ex3 sfr b8[2] iex3 sfr c0[2] external interrupt 3 ex4 sfr b8[3] iex4 sfr c0[3] external interrupt 4 ex5 sfr b8[4] iex5 sfr c0[4] external interrupt 5 ex6 sfr b8[5] iex6 sfr c0[5] external interrupt 6 downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 34 re v 2 interrupt enable interrupt flag interrupt description n ame location n ame location ex_xfer 2002[0] ie_xfer sfr e8[0] xfer_busy interrupt (int 6) ex_rtc 2002[1] ie_rtc sfr e8[1] rtc_1sec interrupt (int 6) ien_wd_nrovf 20b0[0] wd_nrovf_flag 20b1[0] wdt near overflow (int 6) ien_spi 20b0[4] spi_flag 20b1[4] spi interface (int2) ex_fwcol 2007[4] ie_fwcol0 sfr e8[3] fwcol0 interrupt (int 2) ie_fwcol1 sfr e8[2] fwcol1 interrupt (int 2) ex_pll 2007[5] ie_pllrise sfre8[6] pll_ok rise interrupt (int 4) ie_pllfall sfre8[7] pll_ok fall interrupt (int 4) ie_wake sfre8[5] autowake flag ? ie_pb sfre8[4] pb flag ? ? the autowake and pb flag bits are shown in table 31 because they behave similarly to interrupt flags, even though they are not actually related to an interrupt . these bits are set by hardware when the mpu wakes from a push button or wake time out . the bits are reset by writing a zero . note that the pb flag is set whenever the pb is pushed, even if the part is already awake. wd_ nr ovf_flag is set approximately 1 ms before a wdt reset occurs. the flag can be cleared by writing a zero to it and is automatically cleared by the falling edge of wake. interrupt priority level structure all interrupt sources are combined in groups, as shown in table 32 : table 32 : interrupt priority level groups group members 0 external interrupt 0, serial channel 1 interrupt 1 timer 0 interrupt, external interrupt 2 2 external interrupt 1, external interrupt 3 3 timer 1 interrupt, external interrupt 4 4 serial channel 0 interrupt, external interrupt 5 5 external interrupt 6 each group of interrupt sources can be programmed individually to one of four priority level s (as shown in table 33 ) by setting or clearing one bit in the sfr interrupt priority register ip0 and one in ip1 ( table 34 ). if requests of the same priority level are received simultaneously, an internal polling sequence as shown in table 35 determines which request is serviced first. changing interrupt priorities while interrupts are enabled can easily cause software defects . it is best to set the interrupt priority registers only once during initialization before interrupts are enabled. table 33 : interrupt priority levels ip1 [x] ip0 [x] priority level 0 0 level 0 (lowest) 0 1 level 1 1 0 level 2 1 1 level 3 (highest) downloaded from: http:///
f ds_6533_6534_004 71m6533 /g / h and 71m6534 /h data sheet re v 2 35 table 34 : interrupt priority registers ( ip0 and ip1 ) register address bit 7 (msb) bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 (lsb) ip0 sfr 0xa9 C C ip0[5] ip0[4] ip0[3] ip0[2] ip0[1] ip0[0] ip1 sfr 0xb9 C C ip1[5] ip1[4] ip1[3] ip1[2] ip1[1] ip1[0] table 35 : interrupt polling sequence external interrupt 0 polling sequence serial channel 1 interrupt timer 0 interrupt external interrupt 2 external interrupt 1 external interrupt 3 timer 1 interrupt external interrupt 4 serial channel 0 interrupt external interrupt 5 external interrupt 6 interrupt sources and vectors table 36 shows the interrupts with their associated flags and vector addresses. table 36 : interrupt vectors interrupt request flag description interrupt vector address ie0 external interrupt 0 0x0003 tf0 timer 0 interrupt 0x000b ie1 external interrupt 1 0x0013 tf1 timer 1 interrupt 0x001b ri0/ti0 serial channel 0 interrupt 0x0023 ri1/ti1 serial channel 1 interrupt 0x0083 iex2 external interrupt 2 0x004b iex3 external interrupt 3 0x0053 iex4 external interrupt 4 0x005b iex5 external interrupt 5 0x0063 iex6 external interrupt 6 0x006b downloaded from: http:///
71m6533/h and 71m6534/h data sheet fds_6533_6534_004 36 re v 2 figure 7 : interrupt structure tcon . 1 ( ie 0 ) individual enable bits s 1 con . 0 ( ri 1 ) s 1 con . 1 ( ti 1 ) individual flags internal source > = 1 tcon . 5 ( tf 0 ) tcon . 3 ( ie 1 ) tcon . 7 ( tf 1 ) s 0 con . 0 ( ri 0 ) s 0 con . 0 ( ti 0 ) > = 1 ircon . 1 ( iex 2) i 2 fr ircon . 2 ( iex 3) i 3 fr ircon . 3 ( iex 4) ircon . 4 ( iex 5) ircon . 5 ( iex 6) ien 0 . 7 ( eal ) ip 1 . 0 / ip 0 . 0 ip 1 . 1 / ip 0 . 1 ip 1 . 2 / ip 0 . 2 ip 1 . 3 / ip 0 . 3 ip 1 . 4 / ip 0 . 4 ip 1 . 5 / ip 0 . 5 interrupt flags priority assignment interrupt vector polling sequence interrupt enable logic and polarity selection dio timer 0 timer 1 ce_busy uart 0 eeprom xfer _ busy rtc_1s ex_rtc pll ok external source dio _ rn dio _ rn i2c > = 1 flash write collision > = 1 ien 2 . 0 ( es 1 ) ien 0 . 1 ( et 0 ) ien 0 . 0 ( ex 0 ) ien 1 . 1 ( ex 2 ) ien 0 . 2 ( ex 1 ) ien 1 . 2 ( ex 3 ) ien 0 . 3 ( et 1 ) ien 1 . 3 ( ex 4 ) ien 0 . 4 ( es 0 ) ien 1 . 4 ( ex 5 ) ien 1 . 5 ( ex 6 ) ie_xfer ie_rtc ex_xfer > = 1 ex_eex ex_spi ie_eex ie_spi it 0 ie_fwcol1 spi_flag uart1 ( optical ) 0 2 1 3 4 5 6 no . flag = 1 means that an inter - rupt has oc - curred and has not been cleared ex0 C ex6 are cleared automatically when the hardware vectors to the interrupt handler byte received byte transmitted overflow occurredoverflow occurred byte received byte transmitted accumulation cycle completed pll status changed ce completed code run and has new status information dio status changed dio status changed every second busy fell command received spi i / f write attempt , ce busy 2 / 2 / 2009 ie_fwcol0 dio nr_ovf ex_fwcol ex_pll ie_pllrise ie_pllfall ien_spi ien_nr_ wdovf wd_nrovf_flag ce code start , flash write busy wdt near overflow > = 1 mpu - external sources mpu - internal sources downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 37 1.5 on - chip resources 1.5.1 oscillator the 71m6533/71m6534 oscillator drives a standard 32.768 khz watch crystal . these crystals are accurate and do not require a high - current oscillator circuit . the oscillator has been designed specifically to handle these crystals and is compatible with their high impedance and li mited power handling capability. the oscillator power dissipation is very low to maximize the lifetime of any battery attached to v bat. oscillator calibration can improve the accuracy of both the rtc and metering. refer to section 1.5.3 real - time clock (rtc) for more information. the oscillator is powered directly and only from vbat, which therefore mu st be connected to a dc voltage source. the oscillator requires approximately 100 na, which is negligible compare d to the internal leakage of a battery . the oscillator may appear to work when vbat is not connected, but this mode of operation is not re commended. if vbat is connected to a drained battery or disconnected, a battery test that sets bme may drain vbats supply and cause the oscillator to stop. a stopped oscillator may force the device to reset. therefore, an unexpected reset during a battery test should be interpreted as a battery failure. 1.5.2 pll and internal clocks timing for the device is derived from the 32.768 khz crystal oscillator output . on - chip timing funct ions include : ? t he mpu clock (ckmpu) ? t he emulator clock (2 x ckmpu) ? t he clock for the ce (ckce) ? t he clock driving the delta - sigma adc along with the fir (ckadc, ckfi r) ? a real time clock (rtc). the two general - purpose counter/timers contained in the mpu are controlled by ckmpu (see timers and counters ) . table 37 provides a summary of the clock functions provided . table 37 : clock system summary clock derived from mck divider / [ m40mhz, m26mhz ] brownout mode 2 / [1,0] 3 / [0,1] 4 ** / [0,0] 32 khz ckpll crystal 78.6432 mhz 78.6432 mhz 78.6432 mhz off mck ckpll 39.3216 mhz 26.2144 mhz 19.6608 mhz 112 khz ckce mck 4.9152 mhz ? 9.8304 mhz ? 6.5536 mhz 4.9152 mhz off ckadc / ckfir mck 4.9152 mhz 6.5536 mhz 4.9152 mhz 28 khz ckmpu maximum mck 9.8304 mhz *** 6.5536 mhz *** 4.9152 mhz *** 28 khz ck32 mck 32.768 khz 32.768 khz 32.768 khz ** default state at power - up *** this is the maximum ckmpu frequency . ckmpu can be reduced from this rate using mpu_div[2:0]. ? ckce = 9.8304 mhz when ce10mhz is set, 4.9152 mhz otherwise. the master clock, mck, is generated by an on - chip pll that multiplies the crystal oscillator output frequency (ck32) by 2400 to provide 80 mhz (78. 6432 mhz). a divider controlled by the i/o ram registers m40mhz and m26mhz permits scaling of mck by ?, ? , and ?. all other clocks are derived from this scaled mck output (making them multiples of 32768 hz), and the clock skew is matched so that the rising edges of ckadc, ckce, ck32, and ckmpu are aligned. downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 38 re v 2 the pll has a 2x emulator clock which is controlled by the eck_dis bit . since clock noise from this feature may disturb the adc, it is recommended that this option be avoided when possible. the mpu clock frequency ckmpu is determined by another divider controlled by the i/o ram field mpu_div[2:0] and can be set to mck/2 ( mpu_div +2) hz where mpu_div[2:0] varies from 0 to 6. the circuit also generates the 2 x ckmpu clock for use by the emulator. the emulator clock is not generated when eck_dis is asserted. during a power - on reset, [ m40mhz, m26mhz ] defaults to [0, 0], and the mck divider is set to divide by 4. when [ m40mhz , m26mhz ] = [1, 0], the ce clock frequency may be set to ~ 5 mhz ( 4.9152 mhz) or ~ 10 mhz ( 9.8304 mhz) , using the i/o ram register ce10mhz . in this mode, the adc and fir clock frequencies remain at ~ 5 mhz. when [ m40mhz , m26mhz ] = [ 0,1 ] , the ce, adc, fir, and mpu clock frequencies are shifted to ~ 6.6 mhz ( 6.5536 mhz ). this increases the adc sample rate by 33%. ce codes are tailored to particular clock frequencies. changing the clock f requency for a par ticular ce code may render it unusable. in sleep mode, the m40mhz and m26mhz inputs to the clock generator are forced low. in brownout mode, the clocks are derived from the crystal oscillator, and the clock frequencies are scaled by 7/8. 1.5.3 real - time clock (rtc) the rtc is driven directly by the crystal oscillator . it is powered by the net rtc_ nv (battery - backed up supply). the rtc consists of a counter chain and output registers. the counter chain consists of registers for seconds, minutes, hours, day of week, day of month, month, and year . the rtc is capable of processing leap years . each counter has its own output register . the rtc registers will not be affected by the reset pin, watchdog timer resets, or by transitions between the battery modes and mission mode. whenever the mpu reads the seconds register, all other output registers are automatically updated . since the rtc clock is not coherent to the mpu clock, the mpu must read the seconds register until two consecutive reads are the same (this requires either 2 or 3 reads) . at this point, all rtc output registers will have the correct time . regardless of the mpu clock speed, rtc reads require one wait state. rtc time is set by writing to the rtc_sec[5:0] through rtc_yr registers . each write operation must be preceded by a write operation to the we register in i/o ram. the value written to the we register is un important. time adjustments are written to the rtca_adj [6:0] , preg [16:0] and qreg [1:0] registers . updates to preg [16:0] and qreg [1:0] must occur after the one second interrupt, and must be finished before reaching the next one - second boundary . the new values are loaded into the counters at the next one - second boundary. preg [16:0] and qreg [1:0] are separate registers in the device hardware, but the bits are 16 - bit contiguous so the mpu firmware can treat them as a single register. a single binary number can be calculated and then loaded into them at the same time. the 71m6533 and 71m6534 have two rate adjustment mechanisms. the first is an analog rate adjust ment, using rtca_adj [6:0], which trims the crystal load capacitance . setting rtca_adj[6:0] to 00 mi nimizes the load capacitance, maximizing the oscillator frequency . setting rtca_adj[6: 0] to 0x 7 f maximizes the load capacitance, minimizing the oscillator frequency . the adjustable capacitance is ap proximately: pf adj rtca c adj 5.16 128 _ ? = the typical adjustment range is approximately -15 ppm . the precise amount of adjustment will depend on the crystal and board properties. the adjustment may occur at any time, and the resulti ng clock frequency can be measured over a one - second interval . downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 39 the second rate adjustment is a digital rate adjust using preg [16:0] and qreg [1:0] , which can be used to adjust the clock rate up to 988 ppm, with a resolution of 3.8 ppm . updates must occur after a one second inter rupt, and must finish before the next one second boundary. the rate adj ustment will be im plemented starting at the next one - second boundary . since the lsb results in an adjustment every four seconds, the frequency should be measured over an interval that is a multiple of four seconds . to adjust the clock rate using the digital rate adjust, the appropriate values must be written to preg[16:0] and qreg[1:0] . the default frequency is 32,768 rtclk cycles per second . to shift the clock frequency by ? ppm, calculate preg [16:0] and qreg [1:0] using the following equation: ?? ? ?? ? + ??+ ? = + ? ? 5.0 10 1 8 32768 floor qreg preg 4 6 for example, for a shift of - 988 ppm, 4 ? preg + qreg = 262403 = 0x40103 . preg [16:0] = 0x10040, and qreg [1:0] = 0x03 . the default values of preg [16:0] and qreg [1:0] , corresponding to zero adjustment, are 0x10000 and 0x0, respectively . the rtc timing may be observed on the tmuxout pin by setting tmux[4:0] to 0x10 or 0x11. default values for rtca_adj [6:0] , preg [16:0] and qreg [1:0] should be nominal values, at the center of the ad just ment range. uncalibrated extreme values (zero, for example) can cause incor rect operation. if the crystal temperature coefficient is known, the mpu can integrate temperature and correct the rtc time as necessary. both rtca_adj[6:0] and preg[16:0] / qreg[1:0 ] are non - volatile registers, i.e. their values will be preserved in brownout, sleep and lcd modes. however, the digital correction controlled by the preg [16:0] / qreg [1:0] registers is not operational in sleep mode . the digital adjustment using preg [16:0] and qreg [1:0] is preferred over the analog adjustment using rtca_adj: th e digital adjustment is more repeatable and has a wider range. the sub - second register of the rtc, subsec , can be read by the mpu after the on e- second interrupt and before reaching the next one second boundary . subsec contains the count remaining, in 1/256 second nominal clock periods, until the next one - second boundary . when the rst_subsec bit is written, the subsec counter is restarted . reading and resetting the sub - second counter can be used as part of an algorithm to accurately set the rtc. when se tting the rtc_sec register , it is important to take into account that the associated write operation w ill be performed o nly in the next seco nd bo u ndary. 1.5.4 temperature sensor the device includes an on - chip temperature sensor for determining the temperature of the bandgap re ference . if automatic temperature measurement is not performed by selecting chop_e [1:0] = 00, t he mpu may request an alternate multiplexer frame containing the temperature sensor output by asserting mux_alt . the primary use of the temperature data is to determine the magnitude of compensation re quir ed to offset the thermal drift in the system ( see section 3.5 temperature compensation ). 1.5.5 physical m emory flash memory the device includes 128 kb (71m6533 /h, 71m6534) or 256 kb ( 71m6533g, 71m6534 h) of on - chip flash memory . the flash memory primarily contains mpu and ce program code . it also contains images of the ce and mpu data in ram as well as of i/o ram . on power - up, before enabling the ce, the mpu copies these images to their respective locations. downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 40 re v 2 the flash memory is segmented into individually erasable pages that contain 1024 bytes. f lash space allocated for the ce program is limited to 4096 16 - bit words ( 8 kb) . the ce program must begin on a 1 kb boundary of the flash address space . the ce_lctn[7:0] word defines which 1 kb boundary contains the ce code . thus, the first ce instruction is located at 1024 * ce_lctn[7:0] . flash write procedures the mpu may write to the flash memory. this is one of the non - volatile storage options available to the user in addition to external eeprom. flsh_pwe (flash program write enable) differentiates 80515 data store instructions (movx@dptr,a) between flash and xram writes. this bit must be cleared by the mpu after each byte write operation. write operations to this bit are inhibited when interrupts are en abled. the mpu cannot write to flash while the ce is executing its code from flash. two interrupts war n of collisions between the mpu firmware and the ce timing. if a flash write operation is attempted while the ce is busy, the flash write will not execute and the fwcol0 interrupt will be issued. if a flash write is still in progress when the ce would otherwise begin a code pass, the code pass is skipped, the write operation is completed, and the fwcol1 interrupt is issued. the simplest f lash write procedure disables the ce during the write operation and interpolates the meter ing measurements. however, this results in the loss of at least one second of data, because the ce has to resynchronize with the mains voltage . there is a brief guaranteed interval (typically 1/32768 s) between ce executions which occur s 2520 times per second. the start of the interval can be detected with the ce_busy interrupt which occurs on the falling edge of ce_busy (an internal signal measurable from tmuxout). however, this guaranteed id le time (30.5 s) is too short to write a byte which takes 42 s or to erase a page of flash memory which takes at least 20 ms. some ce code has substantially longer idle time s, but in those cases, firmware in terrupt latenci es can easily consume the available write time. if a flash write fails in this scheme, the fail ure can be detected with the fwcol0 or fwcol1 interrupt and the write can be retried. it is practical to pre - erase pages, disable interrupts and poll the ce_busy interrupt flag, ircon[2] . this method avoids problems with interrupt latency, but can still result in a write fail ure if the ce code takes too much time. as mentioned above, polling fwcol0 and fwcol1 can detect write failures. however, the speed in a polling write is only 2520 bytes per second and the firmware cannot respond to interrupts. as an alternative to using flash, a small eeprom can store data without compromis es. eeprom inter faces are included in the device. updating individual bytes in flash m emory the original state of a flash byte is 0xff (all ones). once a value other than 0xff is written to a flash memory cell, over writing with a different value usually requires that the cell be erased first. since cells cannot be erased individually, the page has to be copied to ram, followed by a page erase. after this, the page can be updated in ram and then written back to the flash memory. flash erase procedures fla sh erasure is initiated by writing a specific data pattern to specific sf r registers in the proper sequence. these special pattern/sequence requirements prevent inadvertent erasure of the flash memory. the mass erase sequence is: 1. write 1 to the flsh_meen bit ( sfr 0xb2[1 ]) . 2. write the pattern 0xaa to flsh_erase ( sfr 0x94 ). the mass erase cycle can only be initiated when the ice port is enabled. downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 41 the page erase sequence is: 1. write the page address to flsh_pgadr [5:0] ( sfr 0xb7[7:2] ). 2. write the pattern 0x55 to flsh_erase ( sfr 0x94 ). note: transitions to brownout mode must be avoided during page erase operations. bank - switching the program memory of the 71m6533/71m6534 consists of a fixed lower bank of 32 kb , addressab le at 0x0000 to 0x7fff plus an upper banked area of 32 kb, addressable at 0x8000 to 0xffff . the upper 32 kb space is banked using the i/o ram fl_bank[ 2 :0 ] register as shown in table 38 . : note that when fl_bank[2:0] = 0, the upper bank is the same as the lower bank . table 38 : bank switching with fl_ban k[2:0] 71m6533 /h 71m6534 fl_bank[1:0] 71m6534 h 71m6533g fl_bank[2:0] address range for lower bank (0x000 - 0x7fff) address range for upper bank (0x8000 - 0xffff) 00 000 0x0000 - 0x7fff 0x0000 - 0x7fff 01 001 0x8000 - 0xffff 10 010 0x10000 - 0x17fff 11 011 0x18000 - 0x1ffff not applicable in 71m6533/h and 71m6534 100 0x20000 - 0x27fff 101 0x28000 - 0x2ffff 110 0x30000 - 0x37fff 111 0x38000 - 0x3ffff program security when enabled, the security feature limits the ice to global flash erase operations o nly. all other ice op erations are blocked. this guarantees the security of the users mpu and ce program code. security s hould be enabled by mpu code that is executed dur in g the pre - boot interval (60 ckmpu cycles before the primary boot sequence begins ) . once security is enabled, the only way to disable it is to perform a global erase of the flash, followed by a chip reset. the first 60 cycles of the mpu boot code are called the pre - boot phase because during this phase the ice is inhibited. a read - on ly status bit, preboot , identifies these cycles to the mpu. upon completion of pre - boot, the ice can be enabled and is permitted to take control of the mpu. t he security enable bit, secure , is reset whenever the chip is reset. hardware associated with the bit permits only ones to be written to it. thus, pre - boot code may set secure to enable the security feature but may not reset it. once secure is set, the pre - boot code is protected and no external read of program code is possible specifically, when secure is set , the following applies : ? the ice is limited to bulk flash erase only. ? page zero of flash memory, the preferred location for the users pre - boot code, may not be page - erased by either mpu or ice. page zero may only be erased with global flash erase. ? writes to page zero, whether by mpu or ice are inhibited. mpu/ce ram the 71m6533 and 71m6534 includes 4 kb of static ram memory on - chip (xram) plus 256 bytes of internal ram in the mpu core. the 4 kb of static ram are used for data storage for both mpu and ce operations. downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 42 re v 2 1.5.6 optical interface t he device includes an interface to implement an ir/optical port . the pin opt_tx is designed to directly driv e an external led for transmitting data on an optical link . the pin opt_rx has the same threshold as the rx pin, but can also be used to sense the input from an external photo detector used as the receiver for the optical link . opt_tx and opt_rx are connected to a dedicated uart port (uart1) . the opt_tx and opt_rx pins can be inverted with configuration bits opt_txinv and opt_rxinv , re spectively . additionally, the opt_tx output may be modulated at 38 khz . modulation is available when system power is present (i.e. not in brownout mode) . the opt_txmod bit enables modulation . the duty cycle is controlled by opt_fdc[1:0] , which can select 50%, 25%, 12.5%, and 6.25% duty cycle . a 6.25% duty cycle means opt_tx is low for 6.25% of the period . figure 8 illustrates the opt_tx generator. b a opt_txmod = 0 opt_txmod = 1, opt_fdc = 2 (25%) b a 1/ 38 khz opt_txinv from opt_tx uart mod en duty opt_tx opt_txmod opt_fdc opt_txe[1:0] 1 2 v3p3 internal a b 0 2 3 dio2 wpulse varpulse figure 8 : optical interface when not needed for the optical uart, the opt_tx pin can alternatively be configured as dio2, wpulse, or varpulse. the configuration bits are opt_txe[1:0] . likewise, opt_rx can alternately be configured as dio_1. its control is opt_rxdis . in the 71m6534, a multiplexer allows the selection of alternate pins dio18/mtx and dio22/rtx for uart1. this function is controlled with the umux_e and umux_sel bits in i/o ram . 1.5.7 digital i/o the device includes up to 40 pins (71m6533) or 53 pins (71m6534) of general purpose digital i/o . these pins are compatible with 5 v inputs (no current limiting resistors are needed) . the digital i/o pins can be categorized as follows: ? dedicated dio pins (5 pins) : dio3, dio56, dio57, dio58, pb ? dio/lcd segment pins o a total of 33 pins for the 71m6533 : dio4/seg24 - dio11/seg31 (8 pins) dio13/seg33 - dio21/seg41 (9 pins) dio23/seg43 C dio27/seg47 (5 pins) dio29/seg49 - dio30/seg50 (2 pins) dio41/seg61 (1 pin) dio43/seg63 - dio45/seg65 (3 pins) dio47/seg67 C dio51/seg71 (5 pins) o a total of 46 pins for the 71m6534 : dio4/seg24 C dio30/seg50 (27 pins) dio36/seg56 C dio39/seg59 (4 pins) dio41/seg61 C dio55/seg75 (15 pins) ? dio pins combined with other functions (2 pins): dio2/opt_tx, dio1/opt_rx downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 43 on reset or power - up, all dio pins are inputs until they are configured for the desired direction under mpu control. the pin function can be configured by the i/o ram bits lcd_bitmapn . setting lcd_bitmapn = 1 configures the pin for lcd, setting lcd_bitmapn = 0 configures it for dio. once a pin is configured as dio, it can be configured independently as an input or output with the dio_dir bits or t he lcd_segn registers. input and output data are written to or read from the pins using sfr registers p0, p1 , and p2 . table 39 through table 42 shows all the dio pins with their configuration, direction control and data registers . table entries marked with an asterisk and grayed are applicable to the 71m6534 only. table 39 : data/direction registers and internal resources for dio 1- 15 dio pb 1 2 3 4 5 6 7 8 9 10 11 12* 13 14 15 lcd segment C C C C 24 25 26 27 28 29 30 31 32* 33 34 35 71m6533 pin # 97 91 3 17 60 61 62 63 67 68 69 70 C 44 29 30 71m6534 pin # 114 109 3 22 70 71 72 73 77 78 79 80 120 50 35 36 configuration (dio or lcd segment) always dio 0 1 2 3 4 5 6 7 0* 1 2 3 lcd_bitmap[31:24] lcd_bitmap[3 9:32 ] data register 0 1 2 3 4 5 6 7 0 1 2 3 4* 5 6 7 dio0 = p0 (sfr 0x80) dio1 = p1 (sfr 0x90) direction re gister 0 = input, 1 = output C 1 2 3 4 5 6 7 0 1 2 3 4* 5 6 7 dio_dir0 (sfr 0xa2) dio_dir1 (sfr 0x91) internal re sources configurable y y y y y y y y y y y y C C C C table 40 : data/direction registers and internal resou r ces for dio 16 - 30 dio 16 17 18 19 20 21 22* 23 24 25 26 27 28* 29 30 C lcd segment 36 37 38 39 40 41 42* 43 44 45 46 47 48* 49 50 C 71m6533 pin # 33 12 13 64 65 66 C 54 46 43 42 41 C 32 35 C 71m6534 pin # 39 17 18 74 75 76 115 64 52 49 48 47 81 38 41 configuration (dio or lcd segment) 4 5 6 7 0 1 2* 3 4 5 6 7 0* 1 2 C lcd_bitmap[39:32] lcd_bitmap[ 47:40 ] lcd_bitmap[55:48] data register 0 1 2 3 4 5 6* 7 0 1 2 3 4* 5 6 C dio2 = p2 (sfr 0xa0) dio3 = p3 (sfr 0xb0) direction re gister 0 = input, 1 = output 0 1 2 3 4 5 6* 7 lcd_seg44[3] lcd_seg45[3] lcd_seg46[3] lcd_seg47[3] lcd_seg48[3] * lcd_seg49[3] lcd_seg50[3] dio_dir2 (sfr 0xa1) downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 44 re v 2 table 41 : data/direction registers and internal resources for dio 36 - 47 dio C C C C 36* 37* 38* 39* C 41 42* 43 44 45 46* 47 lcd segment C C C C 56 * 57 * 58 * 59 * C 61 62* 63 64 65 66* 67 71m6533 pin # C C C C C C C C C 99 C 40 31 38 C 22 71m6534 pin # C C C C 87 88 89 90 C 117 118 46 37 44 5 27 configuration (dio or lcd segment) C C C C 0* 1* 2* 3* C 5 6* 7 0 1 2* 3 lcd_bitmap[ 55 : 48 ] lcd_bitmap[ 63 : 56 ] lcd_bitmap[ 71:64 ] data register C C C C lcd_seg56[0]* lcd_seg57[0]* lcd_seg58[0]* lcd_seg59[0]* C lcd_seg61[0] lcd_seg62 [0] * lcd_seg63[0] lcd_seg64[0] lcd_seg65[0] lcd_seg66 [0] * lcd_seg67[0] direction re gister 0 = input, 1 = output C C C C lcd_seg56[3 ]* lcd_seg57[3 ]* lcd_seg58[3 ]* lcd_seg59[3 ]* lcd_seg61[3 ] lcd_seg62[3 ]* lcd_seg63[3 ] lcd_seg64[3 ] lcd_seg65[3 ] lcd_seg66[3 ]* lcd_seg67[3 ] table 42 : data/direction and internal resources for dio 48 - 58 dio 48 49 50 51 52* 53* 54* 55* 56 57 58 lcd segment 68 69 70 71 72* 73* 74* 75* C C C 71m6533 pin # 23 24 25 50 C C C C 14 15 16 71m6534 pin # 28 29 30 56 57 58 59 60 19 20 21 configuration (dio or lcd segment) 4 5 6 7 0* 1* 2* 3* always dio lcd_bitmap[ 71:64 ] lcd_bitmap[ 80:72 ] data register lcd_seg68[0] lcd_seg69[0] lcd_seg70[0] lcd_seg71[0] lcd_seg72 [0] * lcd_seg73 [0] * lcd_seg74 [0] * lcd_seg75 [0] * dio_56[4 ] dio_57[4 ] dio_58[4 ] direction re gister 0 = input, 1 = output lcd_seg68[3] lcd_seg69[3] lcd_seg70[3] lcd_seg71[3] lcd_seg72[3 ]* lcd_seg73[3 ]* lcd_seg74[3 ]* lcd_seg75[3 ]* dio_dir56[7 ] dio_dir57[7 ] dio_dir58[7 ] see the tables in the i/o ram description ( s ection 5.2 ) for exact bit locations. for example, dio43 is cont r olled by lcd_ seg6 3 [0] which resolves to i/o ram location 0x2045[4]. dio24 and higher do not have sfr registers for direction control. d io 36 and higher do not have sfr registers for data access. the direction control of these pins is achieved with the lcd_segn[3] registers and data access is controlled with the lcd_segn[0] registers in i/o ram. dio56 through dio58 are dedicated dio pins. the y are controlled with dio_dir56[7] through dio_dir58[7] (direction) and with dio_56[4] through dio_58[4] (data) in i/o ram. downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 45 since the control for dio_ 24 through dio_ 55 is shared with the control for lcd segments, the firmware must take c are not to disturb the dio pins when accessing the lcd segments and vice versa. usually, this requires reading the i/o ram register, applying a mask and writing back the modified byte. dio4 and dio5 can be configured to implement the eeprom interface. additionally, if dio6 and dio7 are configured as dio and defined as outputs, they can be used as dedicated pulse outputs (wpulse = dio6, varpulse = dio7) using the dio_pw and dio_pv bits . in this case, dio6 and dio7 are under ce control. similarly, dio8 and dio9 can be declared pulse outp uts (xpulse = dio8, ypulse = dio9). the pb pin is a dedicated digital input. in addition, if the optical uart is not used, opt_tx and opt_rx can be configured as dedicated dio pins, dio1and dio2, respectively (see section 1.5.6 optical interface ) . tracking dio pins configured as outputs is useful for pulse counting without external hardware. either the interrupts or the counter/timer clocks can be used to count the pulse outputs, or interrupt on the ces power failure output. a 3 - bit configuration word, i/o ram register dio_ rn (0x2009[2:0] through 0x200e[6:4] ) can be used for certain pins (when configured as dio) to indivi dually assign an internal resource such as an interrupt or a timer control ( dio_rrx configures the rx pin). this way, dio pins can be tracked even if they are configured as outputs. see table 39 for dio pins available for this option. table 43 lists the internal re sources which can be assigned using dio_r0 (also called dio_rpb ) through dio_r7 . if more than one input is connected to the same resource, the resources are combined using a logical or . table 43 : selectable resources using the dio_rn bits dio_r n resource selected for dio pin 0 none 1 reserved 2 t0 (counter0 clock) 3 t1 (counter1 clock) 4 high priority i/o interrupt (int0 rising) 5 low priority i/o interrupt (int1 rising) 6 high priority i/o interrupt (int0 falling) 7 low priority i/o interrupt (int1 falling) when driving leds, relay coils etc., the dio pins should sink the current into gndd (as shown in figure 9 , right), not source it from v3p3d (as shown in figure 9 , left). this is due to the resistance of the internal switch that connects v3p3d to either v3p3sys or vbat. sourcing current in to or out of dio pins other than the pb pin, for example with pull - up or pull - down resistors, should be avoided. violating this rule will lead to increased quiescent current in sleep and lcd modes. downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 46 re v 2 figure 9 : connecting an external load to dio pins 1.5.8 lcd drivers the device contains a total of 57 (71m65 33) or 75 (71m6534) dedicated and multiplexed lcd drivers, which are grouped as follows: ? 15 dedicated lcd segment drivers (seg0 to seg2, seg8, seg12 to seg18, seg20 to seg23 ) ? 4 drivers multiplexed with the spi port (seg3 to seg6) ? 2 drivers multiplexed with mux_sync and cktest (seg7 and seg19) ? 3 or 8 drivers multiplexed with the ice interface o 71m6533 C 3 driver s (seg9 to seg11) o 71m6534 C 8 drivers (seg9 to seg11 and seg51 to seg55 ) ? 33 or 46 multi - use lcd/dio pins desc ribed in section 1.5.7 digital i/o o 71m6533 C 33 pins o 71m6534 C 46 pins with a minimum of 15 driver pins always available and a total of 57 (71m6533) or 75 (71m6534) driver pins in the maximum configuration, the device is capable of driving between 6 0 to 228 pixels (71m6533) or 60 to 300 pixels (71m6534) of an lcd display with 25% duty cycle. at eight pixels per digit, this cor responds to 7.5 to 28 digits for the 71m6533 or 7.5 to 37 digits f or the 71m6534 . the lcd interface is flexible and can drive 7 - segment digits, 14 - segments digits or enunciator symbols. for each multi - use pin, the corresponding lcd_bitmap [] bit ( see section 1.5.7 digital i/o ) i s used to select the pin for dio or lcd operation . the mapping of the lcd_bitmap [] bits is specified in s ection 5.1 i/o ram and sfr map C functional order . the lcd drivers are supported by the four common pins (com0 C com3). lcd segment data is written to the lcd_segn [3:0] i/o ram registers as described in s ection 5.2 i/o ram d escription C alphabetical order . note that even though the register names call out bit numbers 3 to 0 some registers use physical bits 4 to 7 . the segment driver seg18 can be configured to blink at either 0.5 hz or 1 hz. the bl ink rate is controlled by lcd_y . there can be up to four pixels/segments connected to this driver pin . the i/o ram field lcd_blkmap18[3:0] identifies w hich pixels, if any, are to blink. the lcd bias may be compensated for temperature using the lcd_dac [2:0] bits in i/o ram . the bias may be adjusted from 1.4 v below the 3.3 v supply (v3p3sys in mission mode and brownout v3p3sys vbat v3p3d dio gndd mission brownout lcd/sleep low high high-z v3p3sys vbat v3p3d dio gndd mission brownout lcd/sleep low high high-z recommended not recommended downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 47 modes, vbat in lcd mode) . when the lcd_dac [2:0] bits are set to 000, the dac is bypassed and powered down . this can be used to reduce current in lcd mode. 1.5.9 battery monitor the battery voltage is measured by the adc during alternative mux frames if the bme (battery measure enabl e) bit is set . while bme is set, an on - chip 45 k ? load resistor is applied to the battery and a scaled fraction of the battery voltage is applied to the adc input . after each alternative mux frame, the result of the adc conversion is available at x ram address 0x07 . bme is ignored and assumed zero when system power is not available . if vbat is connected to a drained battery or disconnected, a battery test that sets bme may drain vbats supply and cause the oscillator to stop. a stopped oscillator may force the device to reset. therefore, an unexpected reset during a battery test should be interpreted as a battery failure. battery measurement is not very linear but is very reproducible. the best way to perform the ca libration is to set the battery input to the desired failure voltage and then have the mpu firmware record that measurement. after this, the mpu firmwares battery measurement logic may use the recorded va lue as the battery failure limit. the same value can also be a calibration offset for any battery voltage display. see section 6.4.5 for details regarding the adc lsb size and the conversion accuracy. 1.5.10 eeprom interface the 71m6533 and 71m6534 provides hardware support for either a two - pin or a three - wire (- wire) type of eeprom interfa ce. the interfaces use the eectrl and eedata registers for communication . two -p in eeprom interface the dedicated 2 - pin seria l interface communicates with external eeprom devices. the interfac e is mul tiplexed onto the dio4 (sck) and dio5 (sda) pins and is selected by setting dio_eex [1 :0] = 01 . the mpu communicates with the interface through the sfr registers eedata and eectrl . if the mpu wishes to write a byte of data to the eeprom, it places the data in eedata and then writes the transmit code to eectrl . this initiates the transmit operation which is finished when the busy bit falls. int5 is also asserted when busy f alls. the mpu can then check the rx_ack bit to see if the eeprom acknowledged the trans mission. a byte is read by writing the receive command to eectrl and waiting for the busy bit to fall . upon completion, the received data is in eedata . the serial transmit and receive clock is 78 khz during each transmission, and then holds in a high state until the next transmission. the eectrl bits when the two - pin interface is selected are shown in table 44 . table 44 : eectrl bits for 2 - pin interface status bit name read/ write reset state polarity description 7 error r 0 positive 1 when an illegal command is received. 6 busy r 0 positive 1 when serial data bus is busy. 5 rx_ack r 1 negative 0 indicates that the eeprom sent an ack bit. 4 tx_ack r 1 negative 0 indicates when an ack bit has been sent to the eeprom. 3:0 cmd[3:0] w 0000 positive cmd[3:0] operation 0000 no - op command. stops the i 2 c clock (sck, dio4). if not issued, sck keeps toggling. 0010 receive a byte from the eeprom and send ack. 0011 transmit a byte to the eeprom. 0101 issue a stop sequence. downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 48 re v 2 status bit name read/ write reset state polarity description 0110 receive the last byte from the eeprom and do not send ack. 1001 issue a start sequence. others no operation, set the error bit. the eeprom interface can also be operated by controlling the dio4 and dio5 pins directly. in this case, a resistor has to be used in series with sda to avoid data collisions due to limits in the speed at which the sda pin can be switched from output to input . however, controlling dio4 and dio5 directly is discouraged, because it may tie up the mpu to the point where it may become too busy to process interrupts . three -w ire ( - wire) eeprom interface a 500 khz three - wire interface, using sdata, sck, and a dio pin for cs is available . the interface is selected by setting dio_eex [1:0] = 2. the eectrl bits when the three - wire interface is selected are shown in table 45 . when eectrl is written, up to 8 bits from eedata are either written to the eeprom or read from the eeprom, depending on the values of the eectrl bits. the - wire eeprom interface is only functional when mpu_div[2:0] = 000. table 45 : eectrl bits for the 3 -w ire interface control bit name read/ write description 7 wfr w wait for ready . if this bit is set, the trailing edge of busy will be de layed until a rising edge is seen on the data line . this bit can be used during the last byte of a write command to cause the int5 interrupt to occur when the eeprom has finished its internal write sequence . this bit is ignored if hiz=0. 6 busy r asserted while the serial data bus is busy . when the busy bit falls, an int5 interrupt occurs. 5 hiz w indicates that the sd signal is to be floated to high impedance immedi ately after the last sck rising edge. 4 rd w indicates that eedata is to be filled with data from eeprom. 3 :0 cnt[3:0] w specifies the number of clocks to be issued . allowed values are 0 through 8 . if rd=1, cnt bits of data will be read msb first, and right justified into the low order bits of eedata . if rd=0, cnt bits will be sent msb first to the eeprom, shifted out of the msb of eedata . if cnt[3:0] is zero, sdata will simply obey the hiz bit. the timing diagrams in figure 10 through figure 14 describe the 3 - wire eeprom interface behavior . all commands begin when the eectrl register is written . transactions start by first raising the dio pin that is connected to cs . multiple 8 - bit or less commands such as those shown in figure 10 through figure 14 are then sent via eectrl and eedata . when the transaction is finished, cs must be lowered . at the end of a read transaction, the eeprom will be driving sdata, but will transition to hiz (high impedance) when cs falls . the firmware should then immediately issue a write command with cnt=0 and hiz=0 to take control of sdata and force it to a low - z state. downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 49 figure 10 : 3 -w ire interface . write command, hiz=0. figure 11 : 3 -w ire interface . write command, hiz=1 figure 12 : 3 -w ire interface . read command. figure 13 : 3 - wire interface . write command when cnt=0 figure 14 : 3 -w ire interface . write command when hiz=1 and wfr=1 sclk (output) busy (bit) cnt cycles (6 shown) sdata (output) write -- no hiz d2 d3 d4 d5 d6 d7 eectrl byte written int5 sdata output z (loz) cnt cycles (6 shown) write -- with hiz int5 eectrl byte written sclk (output) busy (bit) sdata (output) d2 d3 d4 d5 d6 d7 (hiz) (loz) sdata output z cnt cycles (8 shown) read d0 d1 d2 d3 d4 d5 int5 d6 d7 eectrl byte written sclk (output) busy (bit) sdata (input) sdata output z (hiz) cnt cycles (0 shown) write -- no hiz d7 int5 not issued cnt cycles (0 shown) write -- hiz int5 not issued eectrl byte written eectrl byte written sclk (output) busy (bit) sdata (output) sclk (output) busy (bit) sdata (output) (hiz) sdata output z sdata output z (loz) cnt cycles (6 shown) write -- with hiz and wfr eectrl byte written sclk (output) busy (bit) sdata (out/in) d2 d3 d4 d5 d6 d7 busy ready (from eeprom) int5 (from 6520) sdata output z (hiz) (loz) from 653x downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 50 re v 2 1.5.11 spi slave port the slave spi port communicates directly with the mpu data bus and is able to read and write data ram locations . it is also able to send commands to the mpu . the interface to the slave port consists of the pcsz, pclk, psdi and psdo pins . these pins are multiplexed with th e lcd segment driver pins seg3 to seg6 . the port pins default to lcd driver pins . the port is enabled by setting the spe bit . possible applications for the spi interface are: 1) an external host reads data from ce locations to obtain metering information. this can be used in applications where the 71m6533 or 71m6534 function as a smart front - end w ith preprocessing capability . since the addresses are in 16 - bit fo rmat , any type of xram data can be accessed: ce, mpu, i/o ram, but not sfrs or the 80515 - internal register bank. 2) a communication link can be established via the spi interface: by writing into mpu memory locations, the external host can initiate and control processes in the 71m6533/71m6534 mpu. w riting to a ce or mpu location normally generates an interrupt, a function that can be used to signal to the mpu that the byte that had just been written by the external host must be read and processed. data can also be inserted by the external host without generating an interrupt. 3) an external dsp can access front - end data generated by the adc. this mode of operation uses the 71m6533 or 71m6534 as an analog front - end (afe). a typical spi transaction is as follows : while pcsz is high, the port is held in an initialized/reset state. during this state, psdo is held in hiz state and all transitions on pclk and psdi are ignored. when pcsz falls, the port will begin the transaction on the first rising edge of pclk. the transaction ends when pcsz is raised. at this point, the spi interrupt is generated. some trans actions may consist of a command only. the read transaction consists of the following parts: 1. 8- bit command word generated by the host 2. 16 - bit address generated by the host 3. 8- bit datum provided by the slave (71m653x) 4. optionally, more 8 - bit data bytes (71m653x) the write transaction consists of the following parts: 1. 8- bit command word generated by the host 2. 16 - bit address generated by the host 3. 8- bit datum provided by the host 4. optional ly, more 8 - bit data bytes provided by the host the optional data bytes are part of an auto - increment mode, where the read or write address is incremented by 1 after every read or write operation and does not have to be generated by the host. this operation mode is useful for quickly accessing fields of adjacent data in one long spi command sequence. table 46 lists i/o ram registers (bit fields) that are involved in spi transactions. table 46 : spi registers register name description sp_addr[15:8] sp_addr[7:0] spi address. 16 - bit address from the bus master. this register does not auto - in cre- ment and reading this register will not reflect the next available address after an auto - increment command. sp_cmd spi command. 8 - bit command from the bus master. spe spi port enable. enables the spi interface . spi_flag spi interrupt flag. the flag is set by the hardware and is cleared by the firmware writ - ing a 0. firmware using this interrupt should clear the spurious interrupt indication during initialization. in order to allow access from the external host, the spe bit has to be set. the sp_cmd and sp_addr[15:0] bit fields contain a copy of the command word and address sent by the spi master. downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 51 the spi_flag flag bit will be set upon every spi transaction regardl ess of whether the command is 11xx xxxx or 10xx xxxx. the sp_addr[15:0] bit field is for writing purposes by the host only . data read from sp_addr[15:0] will not contain the next available spi address after an auto - increment operation. the last issued spi command and address (if part of the command) are available to the mpu in registers sp_cmd and sp_addr . the spi port supports data transfers at 1 mb/s in mission mode, and 16 kb/s in brownout mode . the spi port may operate at higher speeds under certain con ditions . for spi speeds higher than 1 mbit/s, the following conditions apply: ? write operations can be issued by the host at up to 2 mbits/s. ? read operations can be issued at up to 2 mbit/s, if a minimum gap of 1 s is inserted by the h ost between the last psck clock of the spi address and the first clock of the data read. this gap will give the hardware of the 71m653x sufficient time to fetch and provide the read data. a read transaction performed at 2 mbit/s is shown in figure 15 . figure 15 : spi slave port: read operation with gap figure 16 illustrates the spi interface read and write timing . table 47 : spi command description command description 11 xx xxxx addr byte0 ... byten read data starting at addr. the address value provided in addr will be automatically incremented until pcsz is raised. upon completion: sp__cmd =11 xx xxxx an mpu inter rupt is generated. 10 xx xxxx addr byte0 ... byten write data starting at addr. the address value provided in addr will be automatically incremented until pcsz is raised. upon completion: sp_cmd =10xx xxxx an mpu inter rupt is generated. 0x xx xxxx addr byte0 ... byten commands other than 1xxx xxxx are ignored, but an spi interrupt is still generated when pcsz goes high. certain i/o ram registers can be written and read using the spi port (see table 48 ). however, the mpu takes priority over the i/o ram bus, and spi operation may fail without notice. to avoid thi s situation, the spi host should send a command other than 11xxxxxx or 10xxxxxx (read or write) before the actual read or write command. the spi slave interface will load the command register and generate an int2 interrupt upon receiving the command. the mpu should service the interrupt and halt any external data memory operations to effectively grant the bus to the spi. when the spi host finishes, it should send another pclk psdi psdo command address 1 s min. 0.5 s data pcsz 7 6 5 4 3 1 0 15 6 5 4 3 1 0 14 .... 2 7 6 5 4 3 1 0 2 downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 52 re v 2 command so the mpu can access the bus. there are no issues with data ram access; spi and the mpu will share the bus with no conflicts for data ram access . table 48 : i/o ram registers accessible via spi name address (hex) bit range read/write ce0 2000 7:3 rw ce1 2001 7:0 rw ce2 2002 5:3, 1:0 rw config0 2004 7:6, 1:0 rw config1 2005 5:2, 0 rw version 2006 7:0 r config2 2007 7:0 rw dio0 2008 7, 4:0 rw dio1 to dio6 2009 to 200e 6:4, 2:0 rw ? 200f 7:6, 3:2 rw rtm0h 2060 1:0 rw rtm0l 2061 7:0 rw rtm1h 2062 1:0 rw rtm1l 2063 7:0 rw rtm2h 2064 1:0 rw rtm2l 2065 7:0 rw rtm3h 2066 1:0 rw rtm3l 2067 7:0 rw pls_w 2080 7:0 rw pls_i 2081 7:0 rw slot0 to slot9 2090 to 209a 7:0 rw ce3 209d 3:0 rw ce4 20a7 7:0 rw ce5 20a8 7:0 rw wake 20a9 7:5, 3:0 r config3 20ac 7:0 rw config4 20ad 7:0 rw ? 20af 2:0 rw spi0 20b0 4, 0 rw spi1 20b1 4, 0 r version 20c8 7:0 r chip_id 20c9 7:0 r trimsel 20fd 4:0 rw trimx 20fe 0 rw trim 20ff 7:0 rw downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 53 v3p3 v3p3 - 400mv v3p3 - 10mv vbias 0v battery modes normal operation, wdt enabled wdt dis- abled v1 a15 a14 a1 a0 c0 0 31 x d7 d6 d1 d0 d7 d6 d1 d0 c5 c6 c7 x pcsz psck psdi psdo 8 bit cmd 16 bit address data[addr] data[addr+1] 7 8 23 24 32 39 extended read . . . serial read a15 a14 a1 a0 c0 0 31 c5 c6 c7 x pcsz psck psdi psdo 8 bit cmd 16 bit address data[addr] data[addr+1] 7 8 23 24 32 39 extended write . . . serial write d7 d6 d1 d0 d7 d6 d1 d0 x hi z hi z (from host) (from 653x) (from host) (from 653x) figure 16 : spi slave port: typical read and write o perations sfr locations, i.e. the control registers internal to the 71m653x mpu, are not accessible via t he spi port. in cases where these registers have to be accessed, for example to control dio pins, a protocol that uses the mpu has to be used for read and write operations involving the sfrs. 1.5.12 hardware watchdog timer a n independent, robust, fixed - duration, watchdog timer (wdt) is included in the 71m6533/71m6534 . it uses the rtc crystal oscillator as its time base and must be refreshed by the mp u firmware at least every 1.5 seconds. when not refreshed on time , the wdt overflows and the part is reset as if the reset pin were pulled high, except that the i/o ram bits will be in the same state as after a wake - up from sleep or lcd modes (see the i/o ram description in section 5.2 for a list of i/o ram bit states after reset and wake - up). 4100 oscillator cycles (or 125 ms) after the wdt overflow, the mpu will be launched from program address 0x0000 . a status bit, wd_ovf, is set when the wdt overflow occurs . this bit is pre serve d in lcd mode (not in sleep mode) and can be read by the mpu when wake rises to determine if the part is initializing after a wdt overflow event or after a power - up . after it is read, the mpu firmware must clear wd_ovf . the wd_ovf bit is also cleared by the reset pin . there is no internal digital state that deactivates the wdt . t he wdt can be disabled by tying the v1 pin to v3p3 (see figure 17 ) . of course, this also deactivates v1 power fault detection . since there is no method in firmware to disable the crystal oscillator or the wdt, it is guaranteed that whatever state the part might find itself in, upon watchdog overflow, the part will be reset to a known state. figure 17 : functions d efined by v1 asserting ice_e will also deactivate the wdt. this is the only method that wil l work in brownout mode. in normal operation, the wdt is re set by periodically writing a one to the wdt_rst bit. the watchdog timer is also reset when the internal signal wake=0 (see s ection 2.5 wake up behavior ). downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 54 re v 2 if enabled with the ien_wd_nrovf bit in i/o ram, an interrupt occurs roughly 1 ms before the wdt resets the chip . this can be used to determine the cause of a wdt reset since it a llows the code to log its state (e.g. the current pc value, loop counters, flags, etc.) before a wdt reset occurs. 1.5.13 test ports (tmuxout p in) one of the digital or analog signals listed in table 49 can be selected to be output on the tmuxout pin . the function of the multiplexer is controlled with tmux [4:0] ( i/o ram 0x20aa[4:0] ), as shown in table 49 . the tmuxout pin may be used for diagnosis purposes or in production test. the rtc 1 - second output may be used to calibrate the crystal oscillator. the rtc 4 - second output provides even higher precision. table 49 : tmux[4 :0] selections tmux[4:0] mode function 0 analog gndd 1 analog reserved 2 analog gndd 3 analog reserved 4 analog pll_2p5 5 analog output of the 2.5 v low - power regulator 6 analog internal vbias voltage (nominally 1.6v) 7 analog not used 8 - 0x0f C reserved 0x10 digital rtc 1 - second output 0x11 digital rtc 4 - second output 0x12 C not used 0x13 digital v1 comparator output, synchronized to rtclk 0x14 digital real - time output from the ce 0x15 digital wdtr_en (comparator 1 output and v1lt3) 0x16 digital v2 comparator output (71m6534 only) 0x17 digital v1 comparator output, unsynchronized 0x18 digital rxd (from optical interface, w/ optional inversion) 0x19 digital mux_sync 0x1a C not used 0x1b digital ckmpu (mpu clock) 0x1c digital pulse output 0x1d digital rtclk (output of the oscillator circuit, nominally 32,786hz) 0x1e digital ce_busy (busy interrupt generated by ce, 396s) 0x1f digital xfer_busy (transfer busy interrupt generated by the ce, nominally every 999.7ms) 1.5.14 v2 comparator (71m6534/6534h o nly) the 71m6534/6534h offers a pin that i s connected to an internal com parator. the voltage applied to th is pin is com pared to the internal reference voltage (vbias) . if the voltage at the v2 pin is above vbias , the comparator output will be high (1). the comparator output is reflected at the tmux out pin, when 0x16 is selected for tmux[4:0]. downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 55 2 f unctional d escription 2.1 theory of operat ion the energy delivered by a power source into a load can be expressed as: = t dt tit v e 0 )( )( assuming phase angles are constant, the following formulae apply: ? p = real energy [wh] = v * a * cos * t ? q = reactive energy [varh] = v * a * sin * t ? s = apparent energy [vah] = 2 2 q p + for a practical meter, not only voltage and current amplitudes, but also phase angles and harmonic content may change constantly. thus, simple rms measurements are inherently inaccurate. a modern solid - state electricity meter ic such as the teridian 71m6533 and 71m6534 functions by emulating the int egral operation above, i.e. it processes current and voltage samples through an adc at a constant frequency . as long as the adc resolution is high enou gh and the sample frequency is beyond the harmonic range of interest, the current and voltage samples, multiplied with the time period of sampling will yield an accurate quantity for the momentary energy. summing up the momentary energy quantities over ti me will result in accumulated energy. figure 18 : voltage , current, momentary and accumulated energy figure 18 shows the shapes of v(t), i(t), the momentary power and the accumulated power, resulting from 50 samples of the voltage and current signals over a period of 20 ms. the application of 240 vac and 100 a results in an accumulation of 480 ws (= 0.133 wh) over the 20 ms period, as i ndicated by the accumulated p ower curve . the described sampling method works reliably, even in the presence of dynamic phase shift and harmonic distortion. -500 -400 -300 -200 -100 0 100 200 300 400 500 0 5 10 15 20 current [a] voltage [v] energy per interval [ws] accumulated energy [ws] downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 56 re v 2 2.2 system timing summary figure 19 summarizes the timing relationships between the input mux states, the ce_busy signal and the two serial output streams. in this example, mux_div [3:0] = 6 and fir_len [1:0] = 1. the duration of each mux frame is ( m40mhz/m26mhz = 00, 10, or 11 assumed) : ? 1 + mux_div[3:0] * 1, if fir_len[1:0] = 0 (138 ce cycles), complete mux frame = 7 ck32 cycles ? 1 + mux_div[3:0] * 2, if fir_len[1:0] = 1 (288 ce cycles) , complete mux frame = 13 ck32 cycles ? 1 + mux_div[3:0] * 3, if fir_len[1:0] = 2 (384 ce cycles) , complete mux frame = 19 ck32 cycles an adc conversion will always consume an integer number of ck32 clocks . following this is a single ck32 cycle where the bandgap voltage is allowed to recover from the change in cross. figure 19 : timi ng relationship between adc mux and compute engine each ce program pass begins when the adc0 conversion (slot 0, as defined by slot0_sel ) begins. depending on the length of the ce program, it may continue running until the end of the last conversion. ce opcodes are constructed to ensure that all ce code passes consume exactly the same number of cycles. the result of each adc conversion is inserted into the x ram when the conversion is complete. the ce code is written to tolerate sudden changes in adc data. the exact clock count when each adc value is loaded into ram is shown in figure 19 . figure 20 shows that the serial data stream, rtm, begins transmitting at the beginning of state s. rtm, consisting of 140 ck cycles, will always finish before the next code pass starts. flag rtm data 0 (32 bits) 0 1 0 1 0 1 0 1 flag flag flag ck32 mux_sync cktest tmuxout/rtm lsb lsb sign sign lsb sign 30 31 30 31 30 31 30 31 lsb sign rtm data 1 (32 bits)rtm data 2 (32 bits) rtm data 3 (32 bits) figure 20 : rtm output format ck32 mux_div conversions ( mux_div =6 is shown) settle adc mux frame adc execution mux_sync ce_execution rtm 140 max ck count 0 300 150 600 900 1200 1500 1800 adc0 adc1 adc2 adc3 adc4 adc5 ck count = ce_cycles + floor((ce_cycles + 2) / 4) notes: 1. all dimensions are 4.9152 mhz ck counts. 2. xfer_busy occurs once every (presamps * sum_cycles) code passes. ce_busy xfer_busy initiated by a ce opcode at end of sum interval adc timing ce timing rtm timing downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 57 2.3 battery modes shortly after system power (v3p3sys) is applied, the part will be in mission mode . mission mode means that the part is operating with system power and tha t the internal pll is stable . this mode is the normal operation mode where the part is capable of measuring energy. when system power is not available (i.e. when v1 71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 58 re v 2 to facilitate transition to sleep mode , which is useful when an unprogrammed ic is mounted on a pcb with a battery installed, the teridian production test programs the following six - byte sequence into the flash location starting at address 0x00000: 0x74 - 0x40 - 0x90 - 0x20 - 0xa9 - 0xf0. this sequence decodes to the following assembler code: 0000: 7440 mov a,#40 ; set bit 6 in accumulator 0002: 9020a9 mov dptr,#20a9 ; point to i/o ram address 0x20a9 0005: f0 movx @dptr,a ; set bit 6 (sleep) in 0x20a9 transitions from both lcd and sleep mode are initiated by wake - up timer timeout conditions or push button events . when the pb pin is pulled high (pushbutton is pressed), the ie_pb interrupt flag (sfr 0xe8[4]) is set, and when the wake - up timer times out, the ie_wake interrupt flag (sfr 0xe8[5]) i s set. in the absence of system power, if the voltage margin for the ldo regulator prov iding 2.5 v to the internal circuitry becomes too low to be safe, the part automatically enters sleep mode (bat_ok false) . the battery voltage must stay above 3 v to ensure that bat_ok remains true . under this condition, the 71m6533 and 71m6534 stays in sleep mode, even if the voltage margin for the ldo improves (bat_ok true). table 50 shows the circuit functions available in each operating mode. table 50 : available circuit functions circuit function system power battery power (nonvolatile supply) mission brownout lcd sleep ce yes C C C ce /mpu data ram yes yes C C fir yes C C C analog circuits : yes C C C mpu clock rate from pll, as defined by mpu_div [2:0] 28.672 khz (7/8 of 32768 hz) C C mpu_div yes C C C ice yes yes C C dio pins yes yes C C watchdog timer yes yes C C lcd yes yes yes C eeprom interface (2 - wire) yes yes (8 kb/s) C C eeprom interface (3 - wire) yes yes (16 kb/s) C C uart yes 300 bd C C optical tx modulation yes C C C flash read yes yes C C flash page erase yes yes C C flash write yes C C C x ram read and write yes yes C C wakeup timer yes yes yes yes o scillator and rtc yes yes yes yes x ram data preservation yes yes C C v3p3d voltage output pin yes yes C C gpo C gp7 registers yes yes yes yes C indicates not active downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 59 2.3.1 brownout mode in brownout mode, most non - metering digital functions are active (as shown in table 50 ) i ncluding ice, uart, eeprom, lcd and rtc. in brownout mode, a low - bias current regulator will provide 2.5 volts to v2p5 and v2p5nv. the regulator has an output called bat_ok to indica te that it has sufficient overhead. when bat_ok = 0, the part will enter sleep mode. from brownout mode, the proces sor can voluntarily enter lcd or sleep modes. when system power is restored, the part will automatically transition from any of the battery modes to mission mode, once the pll has settled. the mpu will run at 7/8 of the c rystal clock rate in brownout mode . this permits the uarts to be operated at 300 bd . in this mode, the mpu clock has substantial short - term jitter. the value of mpu_div[2:0] will be remembered (not changed) as the part enters and exits brownout . mpu_div[2:0] will be ignored during brownout. while pll_ok = 0, the i/o ram bits adc_e and ce_e are held in the zero state disabling both the adc and the ce . when pll_ok falls, the ce program counter is cleared immediately and all fir processing halt s . figure 25 shows the functional blocks active in brownout mode. 2.3.2 lcd mode in lcd mode, the data contained in the lcd_ seg n[3:0] fields is displayed . u p to four lcd segments con nected to the pin seg18 can be made to blink without the involvement of the mpu, which is disabled in lcd mode. to minimize power, only segments that might be used should be enabled. lcd mode can be exited only by system power up, a timeout of the wake - up timer, or a push button. when the ic exits lcd mode, the mpu can discover the event that caused the exit by reading the interrupt flags and interpret them as follows: ? ie_wake = 1 indicates that the wake timer has expired. ? ie_pb =1 indicates that the pushbutton input (pb) was activated. ? compstat = 0 indicates that a reset occurred but that main power is not yet available. ? if none of the above conditions applies , system power (v3p3sys) must have been restored after the transition from lcd mode to mission or brownout mode, the pc will be at 0x0000, the xram is in an undefined state, and the i/o ram is only partially preserved (see the description of i/o ram states in section 5.2 ) . gp0 [7:0] through gp7[7:0] are preserved unless a hardware reset occurs (reset pin is pulled high or power to the part is cycled without a battery being present). figure 26 shows the functional blocks active in lcd mode. 2.3.3 sleep mode in sleep mode, the battery current is minimized and only the oscillator and rtc functions are active . this mode can be exited only by system power - up, a timeout of the wake - up timer, or a push button event. when the ic exits sleep mode, the mpu can discover the event that caused th e exit by reading the in terrupt flags and interpret them as follows: ? ie_wake = 1 indicates that the wake timer has expired. ? ie_pb =1 indicates that the pushbutton input (pb) was activated. ? compstat = 0 indicates that a reset occurred but that main power is not yet available. ? if none of the above conditions applies , system power (v3p3sys) must have been restored after the transition from sleep mode to mission or brownout mode the pc will be at 0x0000, the xram is in an undefined state, and the i/o ram is only partially preserved (see the description of i/o ram state s in section 5.2 ). gp0[7:0] through gp7[7:0] are preserved unless the a hardware reset occurs (reset pin is pulled high or power to the part is cycled without a battery being present). figure 27 shows the functional blocks active in sleep mode. downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 60 re v 2 figure 22 : transition from brownout to mission mode when system power returns figure 23 : power - up timing with v3p3sys and vbat t ied t ogether time v3p3sys and vbat mpu mod e battery current mpu clock source xtal pll (4.2 mhz) pll_ok mission 300 na wake internal resetz brown - out 1024 ck32 cycles 14.5 ck32 cycles 4096 ck32 cycles v1_ok power system (v3p3sys) mp u mode battery current transition mpu clock source xtal pll (4.2 mhz/mux_div) pll_ok mission 2048...4096 ck32 cycles 300 na 13..14 ck cycles wake brownout v1_ok downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 61 figure 24 : power - up timing with vbat o nly time vbat mpu mode battery current mpu clock source xtal pll_ok wake internal resetz 1024 ck32 cycles brownout 14.5 ck32 cycles vbat_ok downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 62 re v 2 figure 25 : functional blocks in brownout mode (inactive blocks in the figure are grayed out.) ? adc converter vref mux xin xout vref dio1/opt_rx reset v1 uart 2/ optical uart1 tx rx 4 com3..0 lcd display driver digital i/o rtclk (32khz) power fault gndd v3p3a v3p3d vbat volt reg 2.5v to logic v2p5 tmuxout faultz tmux[4:0] gnda vbias osc (32 khz) mck pll vref test test mode dio_dirdio_r dio e_rxtx rtc rst_subsecqreg,preg rtc_day rtc_hr rtc_min rtc_sec vbias ice_e pls_invpls_interval pls_maxwidth ce_lctn equ pre_samps sum_cycles rtm_0...3 rtm_e ce_e opt_rxdisopt_rxinv opt_txe opt_txinv opt_txmod opt_fdc lcd_onlysleep v3p3sys test mux ce_prog ck_ce ck_mpu vadc ce multi - purpose i/o rtm rpulse wpulse com0..3 segments 24 dio_1..24 to tmux spi slave pcmd eeprom i/f flash 128 kb/ 256 kb xram 4 kb ce_data pcsz pclkpsdi psdo sdata sclk eedataeectrl opt_tx opt_rx pb pb iram 256b mpu emulator e_tclk e_rstz dio2/opt_tx dio3 seg7/mux_sync seg8 seg9/e_rxtx seg10/e_tclk seg11/e_rst seg12 ...seg18 seg19/cktest dio29 / seg49...dio30 / seg50 dio4/seg24/sdck dio5/seg25/sdata dio6/seg26/wpulse dio7/seg27/rpulse dio10 / seg30...dio11 / seg31 dio41/seg61 rpulse wpulse 4 xram bus 8 iram bus 8 16 32 22 cktest dio_pvdio_pw ckout_e spe dio_eex opt_txe ice_e seg0...seg2 seg3/pclk seg4/psdo seg5/pcsz seg6/psdi fir dio23 / seg43...dio27 / seg47 dio13 / seg33...dio21 / seg41 xpulseypulse xpulse ypulse dio_pxdio_py dio8/seg28/xpulse dio9/seg29/ypulse seg20...seg23 dio56...dio58 7 3 4 2 5 3 ice_e gp0-gp7 nv ram 2.5v_nv 2.5v_nv 2.5v_nv 2.5v_nv rtca_adj rtc_datertc_mo rtc_yr lcd_daclcd_mode lcd_clk lcd_e lcd_blkmap lcd_seg lcd_y mpu _ div ckout _e ibp vb icp vc iap va ian ibn icn idp idn dio43 / seg63...dio45 / seg65 dio47 / seg67...dio51 / seg71 4 3 9 8 5/24/2010 + - v2_ ok * + - v3_ ok * vbias * v3* v2* * 71m6534 only dio12 / seg32 * dio22 / seg42 * dio28 / seg48 * 2 dio36 / seg56*...dio39 / seg59 * dio42/seg62* dio46/seg66* 5 dio52 / seg72*...dio55 / seg75 * 4 temp vbat downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 63 figure 26 : functional blocks in lcd mode (inactive blocks in the figure are grayed out.) ? adc converter vref mux xin xout vref dio1/opt_rx reset v1 uart 2/ optical uart1 tx rx 4 com3..0 lcd display driver digital i/o rtclk (32khz) power fault gndd v3p3a v3p3d vbat volt reg 2.5v to logic v2p5 tmuxout faultz tmux[4:0] gnda vbias osc (32 khz) mck pll vref test test mode dio_dirdio_r dio e_rxtx rtc rst_subsecqreg,preg rtc_day rtc_hr rtc_min rtc_sec vbias ice_e pls_invpls_interval pls_maxwidth ce_lctn equ pre_samps sum_cycles rtm_0...3 rtm_e ce_e opt_rxdisopt_rxinv opt_txe opt_txinv opt_txmod opt_fdc lcd_onlysleep v3p3sys test mux ce_prog ck_ce ck_mpu vadc ce multi - purpose i/o rtm rpulse wpulse com0..3 segments 24 dio_1..24 to tmux spi slave pcmd eeprom i/f flash 128 kb/ 256 kb xram 4 kb ce_data pcsz pclkpsdi psdo sdata sclk eedataeectrl opt_tx opt_rx pb pb iram 256b mpu emulator e_tclk e_rstz dio2/opt_tx dio3 seg7/mux_sync seg8 seg9/e_rxtx seg10/e_tclk seg11/e_rst seg12 ...seg18 seg19/cktest dio29 / seg49...dio30 / seg50 dio4/seg24/sdck dio5/seg25/sdata dio6/seg26/wpulse dio7/seg27/rpulse dio10 / seg30...dio11 / seg31 dio41/seg61 rpulse wpulse 4 xram bus 8 iram bus 8 16 32 22 cktest dio_pvdio_pw ckout_e spe dio_eex opt_txe ice_e seg0...seg2 seg3/pclk seg4/psdo seg5/pcsz seg6/psdi fir dio23 / seg43...dio27 / seg47 dio13 / seg33...dio21 / seg41 xpulseypulse xpulse ypulse dio_pxdio_py dio8/seg28/xpulse dio9/seg29/ypulse seg20...seg23 dio56...dio58 7 3 4 2 5 3 ice_e gp0-gp7 nv ram 2.5v_nv 2.5v_nv 2.5v_nv 2.5v_nv rtca_adj rtc_datertc_mo rtc_yr lcd_daclcd_mode lcd_clk lcd_e lcd_blkmap lcd_seg lcd_y mpu _ div ckout _e ibp vb icp vc iap va ian ibn icn idp idn dio43 / seg63...dio45 / seg65 dio47 / seg67...dio51 / seg71 4 3 9 8 5/24/2010 + - v2_ ok * + - v3_ ok * vbias * v3* v2* * 71m6534 only dio12 / seg32 * dio22 / seg42 * dio28 / seg48 * 2 dio36 / seg56*...dio39 / seg59 * dio42/seg62* dio46/seg66* 5 dio52 / seg72*...dio55 / seg75 * 4 temp vbat downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 64 re v 2 figure 27 : functional blocks in sleep mode (inactive blocks in the figure are grayed out.) ? adc converter vref mux xin xout vref dio 1 / opt _ rx reset v 1 uart 2 / optical uart 1 tx rx 4 com 3 .. 0 lcd display driver digital i / o rtclk ( 32 khz ) pow er fault gndd v 3 p 3 a v 3 p 3 d vbat volt reg 2 . 5 v to logic v 2 p 5 tmuxout faultz tmux [ 4 : 0 ] gnda vbias osc ( 32 khz ) mck pll vref test tes t mode di o _ di r di o _ r di o e _ rxtx rtc rst _ subsec qreg , preg rtc _ day rtc _ hr rtc _ mi n rtc _ sec vbias ice _ e pls _ inv pls _ interval pls _ max wi dth ce _ lctn equ pre _ samps sum _ cycles rtm _ 0 ... 3 rtm _ e ce _ e opt _ rxdis opt _ rxinv opt _ txe opt _ txi nv opt _ txmod opt _ fdc lcd _ only sleep v 3 p 3 sys test mux ce _ prog ck _ ce ck _ mpu vadc ce multi - purpose i / o rtm rpulse wpulse com 0 .. 3 segments 24 dio _ 1 .. 24 to tmux spi slave pcmd eeprom i / f flash 128 kb / 256 kb xram 4 kb ce _ data pcsz pclk psdi psdo sdata sclk eedata eectrl opt _ tx opt _ rx pb pb iram 256 b mpu emulator e _ tclk e _ rstz dio 2 / opt _ tx dio 3 seg 7 / mux _ sync seg 8 seg 9 / e _ rxtx seg 10 / e _ tclk seg 11 / e _ rst seg 12 ... seg 18 seg 19 / cktest dio 29 / seg 49 ... dio 30 / seg 50 dio 4 / seg 24 / sdck dio 5 / seg 25 / sdata dio 6 / seg 26 / wpulse dio 7 / seg 27 / rpulse dio 10 / seg 30 ... dio 11 / seg 31 dio 41 / seg 61 r p u l s e w p u l s e 4 xram bus 8 iram bus 8 16 32 22 cktest di o _ pv di o _ pw ckout _ e spe di o _ eex opt _ txe ice _ e seg 0 ... seg 2 seg 3 / pclk seg 4 / psdo seg 5 / pcsz seg 6 / psdi fir dio 23 / seg 43 ... dio 27 / seg 47 dio 13 / seg 33 ... dio 21 / seg 41 xpulse ypulse x p u l s e y p u l s e di o _ px di o _ py dio 8 / seg 28 / xpulse dio 9 / seg 29 / ypulse seg 20 ... seg 23 dio 56 ... dio 58 7 3 4 2 5 3 ice _ e gp 0 - gp 7 nv ram 2 . 5 v _ nv 2 . 5 v _ nv 2 . 5 v _ nv 2 . 5 v _ nv rtca _ adj rtc _ date rtc _ mo rtc _ yr lcd _ dac lcd _ mode lcd _ clk lcd _ e lcd _ blkmap lcd _ seg lcd _ y mpu _ di v ckout _ e ibp vb icp vc iap va ian ibn icn idp idn dio 43 / seg 63 ... dio 45 / seg 65 dio 47 / seg 67 ... dio 51 / seg 71 4 3 9 8 5 / 24 / 2010 + - v 2 _ ok * + - v 3 _ ok * vbias * v 3 * v 2 * * 71 m 6534 only dio 12 / seg 32 * dio 22 / seg 42 * dio 28 / seg 48 * 2 dio 36 / seg 56 *... dio 39 / seg 59 * dio 42 / seg 62 * dio 46 / seg 66 * 5 dio 52 / seg 72 *... dio 55 / seg 75 * 4 temp vbat downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 65 2.4 fault and reset behavior 2.4.1 reset mode when the reset pin is pulled high, all digital activity stops . the oscillator and rtc module continue to run . additionally, all i/o ram bits are set to their default states . as long as v1, the input voltage at the power fault block, is greater than vbias, the internal 2.5 v regulator will continue to provide power to the digital section. once initiated, the reset mode will persist until the reset timer times out, signified by wake rising . this will occur in 4100 cycles of the real time clock after reset goes low, at which time the mpu wi ll begin executing its pre - boot and boot sequences from address 00 . see the description of program security in section 1.5.5 for additional description s of pre - boot and boot. if system power is not present, the reset timer duration will be 2 cycles of the crystal clock at which time the mpu will begin executing in brownout mode, starting at address 00. 2.4.2 power fault circuit the 71m6533 and 71m6534 include a comparator to monitor system power fault conditions . when the output of the comp arator falls (v1 71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 66 re v 2 figure 28 : wake up timing 2.5.2 wake on timer if the part is in sleep or lcd mode, it can be awakened by the wake - up timer. until this timer times out, the mpu is in reset due to wake being low . when the wake - up timer times out, the wake signal rises and within three ck32 cycles, the mpu begins to execute . the mpu can determine whether the timer woke it by checking the autowake interrupt flag ( ie_wake ). the wake - up timer begins timing when the part enters lcd or sleep mode . its duration is controlled by wake_prd[2:0] and wake_res . wake_res selects a timer lsb of either 1 minute ( wake_res = 1) or 2. 5 seconds ( wake_res = 0). wake_prd[2:0] selects a duration of from 1 to 7 lsbs. the timer is armed by wake_arm = 1 . it must be armed at least three rtc cycles before sleep or lcd_only is initiated . setting wake_arm presets the timer with the values in wake_res and wake_prd and readies the timer to start when the pro cessor writes to the sleep or lcd_only bits . the timer is reset and disarmed whenever the processor is awake . thus, if it is de sired to wake the mpu periodically (every 5 seconds, for example) the timer must be rearmed every time the mpu is awakened . 2.6 data flow the data flow between the compute engine (ce) and the mpu is shown in figure 29 . in a typical application, the 32 - bit ce se quen tially processes the samples from the voltage inputs on pins ia, va, i b, and vb, performing calculations to measure active power (wh), reactive power (varh), a 2 h, and v 2 h for four - quadrant metering. these measurements are then accessed by the mpu, processed further and output using the peripheral devices available to the mpu. figure 29 illustrates the ce/mpu data flow. figure 29 : mpu/ce data flow time system power (v3p3sys) mpu mode pll_ok 15 ck32 cycles wake lcd pb or wake- up timer brownout ce mpu pre - processor post - processor irq processed metering data pulses i/o ram (configuration ram) samples data downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 67 2.7 ce/mpu communication figure 30 shows the functional relationship s between the ce and the mpu . the ce is controlled by the mpu via shared registers in the i/o ram and in ram . the ce outputs two interrupt signals to the mpu: ce_busy and xfer_busy, which are connected to the mpu interrupt service inputs as external interrupts. ce_busy indi cates that the ce is actively pro cessing data . this signal will occur once every multiple xer cycle . xfer_busy indicates that the ce is up dating data to the output region of the ram. this will occur whenever the ce has finished generating a sum by completing an accumulation interval determined by sum_cycles[5:0] * pre_samps [1:0] samples. in terrupts to the mpu occur on the falling edges of the xfer_busy and ce_busy signals. refer to section 5.3 ce interface description for additional information on setting up the device using the mpu firmware. varsum wsum apulsew apulser ext pulse sag control data dio xfer busy samples ce mpu interrupts i/o ram (configuration ram) mux control adc display (memory mapped lcd segments) serial (uart0/1) eeprom (i 2 c) var (dio7) pulses w (dio6) ce busy figure 30 : mpu/ce communication downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 68 re v 2 3 a pplication i nformation 3.1 connection of sensors (ct, resistive shunt) figure 31 through figure 33 show how resistive dividers, current transformers, rogowski coils and resistiv e shunts are connected to the voltage and current inputs of the 71m6533/71m6534 . the analog input pins of the 71m65xx are designed for sensors with low source impedance. rc filters with component s differing fr om th e components use d in the teridian demo boards should be avoided. see application note an 5292 for details on filter implementation. figure 31 : resistive voltage divider figure 32 : ct with single ended (left) and differential input (right) connection figure 33 : resistive shunt (left), rogowski sensor (right) note: ferrites or other inductive components must not be connected directly to the sensor input pins (inp, inn vn). 3.2 distinction b etween 71m6533 /71m6534 and 71m6533 g/ h /71m6534h parts the 71m6533g, 71m6533h , and 71m6534h (high -accuracy) parts go through an additional process of characterization during production which makes them suitable to high -accuracy performance over temperature . the first process, applied to all parts is the trimming of the reference voltage to the target value of 1. 195 v . the second process, which is applied only to the high - accuracy parts , is the characterization of the re - ference vol tage over temperature. the coefficients for the reference voltage are stored in trim fuses (i/o ram reg isters trimbga , trimbgb , trimm[2:0] . the mpu can read these trim fuses and calculate the va = vin * r out /(r out + r in ) v in r in r out va v out r 1/n i in i out filter v3p3 ia inp inn v3p3a v out i out i in r 1/n v diff v out r i in ia v3p3 vout = di in /dt v out r 1/n i in v c v3p3 ia downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 69 correction coe fficients ppm1 and ppm c2 per the formulae given in section 6.4.15 vref . see section 3.5 temperature compensation for additional details. the fuse trimbgb is non - zero for the high - accuracy part s and zero for the regular part s. only partial t rim fuse in formation is available for the regular parts. t he values for ppmc and ppmc2 that are used by the ce to implement temperature compensation are calculated as follows : ? ppmc = tc1 * 22.46 = (5 2.4 6 - trimt ) * 3.18 * 22.46 = (52.46 - trimt ) * 71.423 ? ppmc2 = tc2 * 1150.1 = C 0.444 * 1150.1 = - 510.6 the factor trimt used t o calculate ppm c is derived from the trim fuse trimt [7:0]. 3.3 connecting 5 v devices all digital input pins of the 71m6533/71m6534 are compatible with external 5 v devices. i/o pins configured as inputs do not require current - limiting resistors when they are connected to external 5 v devices. 3.4 temperature measurement measurement of absolute temperature uses the on - chip temperature sensor and applying the following formula: n n n t s n t n t + ? = ) )( ( in the above formula t is the temperature in c, n(t) is the adc count at temperature t, n n is the adc count at 25c, s n is the sensitivity in lsb/c as stated in the electrical specifications, and t n is +25 c . it is recommended that temperature measurements be based on temp_raw_x which is the sum of two consecutive temperature readings, thus being higher by a factor of two than the raw sensor readings. example: at 25c a temperature sensor value of 483,203,000 (n n ) is read by the adc. at an unknown temperature t the value 449.648.000 is read at (n(t)). we determine the absolute t emperature by dividing th e difference of n n and n(t) by 512 times the slope factor ( - 1180). after this , we add the 25 c from the reference measurement : c c t 5.80 25 ) 1180 ( 512 0 483,203,00 -0 449.648.00 = + ?? = the divisor 512 accounts for the 8 - bit shift of the adc value and for the factor of 2 introduced into the measure ment by the ce which adds two consecutive temperature readings. 3.5 temperature compensation in a typical application, the ce compensates for the temperature dependency of the reference voltage (se e section 4.1.1 ) . system - wide temperature correction over the entire meter is possible by involving the mpu. the thermal coefficients processed by the mpu may include the current sensors, the vo ltage sensors, and other influences. 3.5.1 temperature coefficients for the 71m6533 and 71m6534 (regular accuracy parts) , the temperature coefficient tc2 is given as a constant that represent typical co m ponent behavior (in v/c 2 ). tc1 can be calculated for the individual chip from the contents of the trimt[7:0] i/o ram register. tc1 and tc2 allow compensation for variations of the reference voltage to within 40 ppm/c. for the high - accuracy parts , individu alized coefficients tc1 and tc2 can be retrieved from the on - chip fuses via trimbga , trimbgb , trimm[2:0] (see section 3.2 distinction b etween 71m6533 /71m6534 and 71m6533 g/h /71m6534h parts ). for this part, tc1 and tc2 allow compensation for variations of the reference voltage to within 15 ppm/c downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 70 re v 2 since tc1 and tc2 are given in v/c and v/c 2 , respectively, the value of the vref voltage (1.195v) has to be taken into account when transitioning to ppm/c and ppm/c 2 . this means that ppmc = 26.84*tc1/1.195 and ppmc2 = 1374*tc2/1.195). close examination of the electrical specification (see table 51 ) for the parts with regular accuracy reveals that the achievable deviation is not strictly 40 ppm/c over the whole temperature range: only for temperatures for which t - 22 > 40 (i.e. t > 62 c) or for which t - 22 < - 40 (i.e. t < - 18c), the data sheet states 40 ppm/c. for temperatures between - 18c and +62c, the error should be considered constant at 1,600 ppm, or 0.16%. similar considerations apply to the high - accuracy parts (see table 52 ), where the error around the calibration temperature should be considered constant at 6 00 ppm, or 0.06%. p arameter c ondition m in t yp vref(t) deviation from vnom(t) )40,22 max( 10 )( )( )( 6 ? ? t t vnom t vnom t vref - 40 +40 ppm /oc table 51 : vref definition for the regular accuracy parts p arameter c ondition m in t yp 4 vref(t) deviation from vnom(t) )40,22 max( 10 )( )( )( 6 ? ? t t vnom t vnom t vref - 15 +15 ppm /oc table 52 : vref definition for the high - accuracy parts figure 34 and figure 35 show this concept graphically. the box from - 18c to +62c reflects the fact that it is impractical to measure the temperature coefficient of high - quality references at small temperature ex cursions. for example, at +25c, the expected error would be 3c * 40 ppm/c, or just 0.012% for the regular - accuracy parts. . the maximum deviation of 2520 ppm (or 0.252%) for the regular - accuracy parts is reached at the temperature extremes. if the reference voltage is used to measure both voltage and current, the identical errors of 0.252% add up to a maximum wh registration error of 0.504%. the maximum deviation of 945 ppm (or 0.0945 %) for the high - accuracy parts is reached at the temperature extremes. if the reference voltage is used to measure both voltage and current, the identical er rors of 0.0945% add up to a maximum wh registration error of 0.189 %. downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 71 figure 34 : error band for vref over temperature (regular -a ccuracy parts) figure 35 : error band for vref over temperature (high - accuracy parts) 4.1.1 temperature compensation for vref the bandgap temperature is used to digitally compensate the power outputs for the temperatur e de pendence of vref, using the ce register gain_adj (internal temperature compensation). since the band gap amplifier is chopper - stabilized via the chop_e[1:0] field , the most significant long - term drift mechanism in the voltage reference is removed. in internal temperature compensation mode, the ce applies the following formula to determine the gain_adj value. in this formula temp_x is the deviation from nominal or calibration temperature expressed in multiples of 0.1 c: 23 2 14 2 2 _ 2 _ 16385 _ ppmc x temp ppmc x temp adj gain ? + ? + = - 2800 - 2400 - 2000 - 1600 - 1200 - 800 - 400 0 400 800 1200 1600 2000 2400 2800 - 40 - 20 0 20 40 60 80 error band (ppm) over temperature ( c) 40 ppm/ c 40 ppm/ c - 1200 - 800 - 400 0 400 800 1200 - 40 - 20 0 20 40 60 80 error band (ppm) over temperature ( c) 15 ppm/ c 15 ppm/ c downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 72 re v 2 4.1.2 syst em temperature compensat i on in a production electricity meter, the 71m6533 and 71m6534 is not the only component contributing to temperature dependency. a whole range of components (e.g. current transformers, resistor dividers, power sources, filter capacitors) will contribute temperature effects. since the output of the on - chip temperature sensor is accessible to the mpu, temperature compensation mechanisms with great flexibility are possible. mpu access to gain_adj permits a system - wide temperature correction over the entire meter rather than local to the chip. 4.1.3 temperature compensation for the rtc in order to obtain accurate readings from the rtc, the following calibration proc edures are recommended: 1. at the time of meter calibration, the crystal o scillator may be calibrated using the rtca_adj register in i/o ram to be as close to 32768 hz as possible . the recommended procedure is to connect a high - precision frequency counter to the tmuxout pin and select 0x11 for tmux[4:0] . this will generate a 4- second pulse at tmuxout that can be used to trim rtca_adj to the best value. a wider trim range is achieved with the i/o ram registers preg[16:0] and qreg[1:0] . 2. when the meter is in service, the mpu takes frequent temperature readings. if the temperature cha racteristics of the crystal are known, the temperature readings can be used to modify the settings for the i/o ram registers preg[16:0] and qreg[1:0] in order to keep the crystal frequency close to 32768 hz. 3. after periods of operation under battery power, the temperature for the time the meter was not powered can be estimated by averaging the temperatures before and after battery operation . based on this, the overall correction for the rtc time can be calculated and applied to the rtc after main power returns to the meter. 4.2 connecting lcds the 71m6533 and 71m6534 h ave an on - chip lcd controller capable of controlling static or multiplexed lcds . figure 36 shows the basic connection for an lcd. the following dedicated and multi - use pins can be assigned as lcd segments: ? 15 dedicated lcd segment pins: seg0 to seg2, seg8, seg12 to seg18, seg20 to seg23 . ? 9 dual - function pins: mux_sync/seg7, cktest/seg19, e_rxtx/seg9, e_tclk/seg10, e_rst/seg11, seg3/pclk, seg4/psdo, seg5/pcsz, seg6/psdi . ? 5 additional dual - function pins in the 71m6534: seg51/e_tbus0, seg52/e_tbus1, seg53/e_tbus2, seg54/e_tbus 3, seg55/e_isync ? 33 (71m6533) or 46 (71m6534) combined dio and segment pins o 71m6533: seg24/dio4 to seg31/dio11, seg33/dio13 to seg41/dio21, seg43/dio23 to seg47/dio27, seg49/dio29, seg50/dio30, seg61/dio41, seg63/dio43 to seg65/dio45, and seg67/dio47 to s eg71/dio51. o 71m6534: seg24/dio4 to seg50/dio30, seg56/dio36 to seg59/dio39, seg61/dio41 to seg75/dio55. downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 73 figure 36 : connecting lcds 4.3 connecting i 2 c eeproms i 2 c eeproms or other i 2 c compatible devices should be connected to the dio pins dio4 and dio5, as shown in figure 37 . pull - up resistors of roughly 10 k ? to v3p3d (to ensure operation in brownout mode) should be used for both scl and sda signals. the dio_eex [1:0] register in i/o ram must be set to 1 in order to convert the dio pins dio4 and dio5 to i 2 c pins scl and sda. figure 37 : i 2 c eeprom connection 4.4 connecting three - wire eeproms wire eeproms and other compatible devices should be connected to the dio pins dio4 and dio5, as shown in figure 38 and described below: ? dio5 connects to both the di and do pins of the three - wire device . ? the cs pin must be connected to a vacant dio pin of the 71m6533/71m6534 . ? in order to prevent bus contention, a 10 k ? to resistor is used to separate the di and do signals. ? t he cs and clk pin s should be pulled down with a resistor to prevent operation of the three - wire device on power - up, before the 71m6533/71m6534 can establish a stable signal for cs and clk . ? the dio_eex [1:0] field in i/o ram must be set to 2 in order to convert the dio pins dio4 and dio5 to wire pins . the - wire eeprom interface is only functional when mpu_div[2:0] = 000. dio4 dio5 eeprom scl sda v3p3d 10 k 10 k segments lcd commons 71m6533/71m6534 71m6533/71m6534 downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 74 re v 2 figure 38 : three - wire eeprom connection 4.5 uart0 (tx/rx) the uart0 rx pin should be pulled down by a 10 k ? resistor and additionally protected by a 100 pf ceramic capacitor, as shown in figure 39 . figure 39 : connections for uart0 4.6 optical interface (uart1) the opt_tx and opt_rx pins can be used for a regular serial interf ace (by connecting a rs_232 tran sceiver for example) , or they can be used to directly operate optical components (for example, an infrared diode and phototransistor implementing a flag interface ) . figure 40 shows the basic connections for uart1 . the opt_tx pin becomes active when the opt_txe [1:0] i/o ram field is set to 0 0. the polarity of the opt_tx and opt_rx pins can be inverted with the configuration bits , opt_txinv and opt_rxinv , re spectively . the opt_tx output may be modulated at 38 khz when system power is present . modulation is not available in brownout mode . the opt_txmod bit enables modulation . the duty cycle is controlled by opt_fdc[1:0] , which can select 50%, 25%, 12.5%, and 6.25% duty cycle . a 6.25% duty cycle means opt_tx is low for 6.25% of the period. the opt_rx pin uses digital signal thresholds and may need an analog filter when receiving modulated optical signals. with modulation, an optical emitter can be operated at higher current than nominal, enabling it to increase the distance along the optical path. if operation in brownout mode is desired, the external components should be connected to v3p3d. tx rx 71m6533/71m6534 10 k 100 pf rx tx eeprom 100 k? dio4 dio5 clk di v3p3d 100 k? cs dion do 10 k ? vcc 71m6533/71m6534 downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 75 figure 40 : connection for optical components 4.7 connecting the v1 pin a voltage divider should be used to establish that v1 is in a safe range when the meter is in mission mode (see figure 41 ). v1 must be lower than 2.9 v in all cases in order to keep the hardware watchdog timer enabled. the resistor divider ratio must be chosen so that v1 crosses the vbias threshold when v3p3 i s near the minimum supply voltage (3.0 vdc). a series resistor (r3) provides additional hysteresis , and a capacitor to ground (c1) is added for enhanced emc immunity. the amount of hysteresis depends on the choice of r1 and r3: if v1 < vbias, approximately 1 a will flow into the on - chip v1 comparator causing a voltage drop. if v1 vbias, almost no current will flow into the comparator. the voltage drop will require v3p3 to be slightly higher for v1 to cross the vbia s threshold when v3p3 is rising as compared to when v3p3 is falling. maintaining sufficient hysteres is helps to eliminate rapid mode changes which may occur in cases where the power supply is unstable with v1 close to the vbias threshold point. figure 41 : voltage divider for v1 4.8 connecting the reset pin even though a functional meter will not necessarily need a reset switch, it is useful to have a reset push - button for prototyping as shown in figure 42 , left side. the reset signal may be sourced from v3p3sys (functional in mission mode only), v3p3d (mission and brownout modes), or vbat (all m odes, if a battery is present), or from a combin ation of these sources, depending on the application. for a production meter, the reset pin should be protected by the by the external components shown in figure 42 , right side. r1 should be in the range of 100 ? and mounted as closely as possible to the ic. s ince the 71m6533 and 71m6534 generates its own power - on reset, a reset button or circuitry, as shown in figure 42 , is only required for test units and prototypes. v3p3 r 2 v1 r 1 r 3 c 1 100pf gnd 16.9k 20k opt_tx r 2 r 1 opt_rx 71m6533/71m6534 v3p3sys phototransistor led 10 k ? 100 pf v3p3sys downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 76 re v 2 figure 42 : external components for the reset pin: push - button (left), production circuit (right) 4.9 connecting the emulator port pins even when the emulator is not used, small shunt capacitor s to ground (22 pf) should be used for protection from emi as illustrated in figure 43 . production boards should have the ice_e pin connected to ground via a resistor of around 200 . the 71m6534 is capable of supporting a trace emulator. to connect this non - standard emulator, the pins e_tbus0 (seg51) C e_tbus3 (seg54) and e_isync (seg55) have to be brought out to the emulator interface. figure 43 : external components for the emulator interface 4.10 connecting a battery it is important that a valid voltage is connected to the vbat pin at all times. for meters w ithout a battery , vbat should be connected directly to v3p3sys. designs for meters with batteries need to ensure that the meter functions even when the battery voltage decreases below the specified voltage for vbat. thi s can be achieved by connecting a diode from v3p3sy s to vbat. however, the battery test will yield in accurate results if that technique is used, since the voltage at v3p3sys will feed current to the vbat pin. a better solution is shown in figure 44 . during the battery test, a dio pin is activated as an output and applies a low voltage to the anode of the diode. this prevents the voltage at the power supply to influence the voltage at the vbat pin. e_rst 71m6533/71m6534 e_tclk 62 62 ? 62 ? 22 pf 22 pf 22 pf lcd segments ice_e v3p3d e_rxt (optional) r 1 reset 71m6533/ 71m6534 gndd v3p3d r 2 vbat/ v3p3d reset switch 1k ? 0.1f 10k ? 71m6533/ 71m6534 downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 77 figure 44 : connecting a battery m eters equipped with batteries need to contain code that transitions the chip to sleep mode as soon as the battery is attached in production. otherwise, remaining in brownout mode would add unnecessary drain to the battery. 4.11 flash programming operational or test code can be programmed into the flash memory using either an in - circuit emulator or the flash programmer module (tfp -2) . the flash programming procedure uses the e_rst, e_rxtx, and e_tclk pins. the fl_bank [2:0] field must be set to the value corresponding to the bank that is being programmed. 4.12 mpu firmware library all application - specific mpu functions mentio ned in section 3 a pplication i nformation are featured in the teridian demonstration source code . the code is available as part of the demo nstration kit for the 71m6533/71m6534 . the demonstrati on kits come with the 71m6533/71m6534 pre programmed with demo firmware and mounted on a functional sample meter demo board . the demo boards allow for quick and efficient evaluation of the ic without having to write firmware or having to supply an in - circuit emulator (ice). 4.13 crystal oscillator the oscillator drives a standard 32.768 khz watch crystal. the oscillator has been designed specifically to handle these crystals and is compatible with their high impedance and limited power handling capability . the oscillator power dissipation is very low to maximize the lifetime of any battery backup dev ice attached to vbat. board layouts with minimum capacitance from xin to xout will require less battery current. good layouts will have xin and xout shielded from each other. for best rejection of electromagnetic interference, connect the crystal body and the ground terminals of the two crystal capacitors to gndd through a ferrite bead. no external resistor should be connected across the crystal , since the oscillator is self - biasing . 71m6533/6534 v3p3a dio power supply v3p3sys vbat battery or super - cap + - downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 78 re v 2 4.14 meter calibration once the teridian 71m6533 and 71m6534 energy meter device has been installed in a meter system, it must be calibrated . a complete calibration includes the following: ? calibration of the metrology section, i.e. calibration for tolerances of the current sens ors, voltage dividers and signal conditioning components as well as of the internal reference voltage (vref). ? establishment of the reference temperature (section 3.2 ) for temperature measurement and temperature compensation (s ection 3.5 ) . ? calibration of the battery voltage measurement (s ection 1.5.9 ). ? calib ration of the oscillator frequency (s ection 1.5.3 ) and temperature compensation for the rtc (s ection 4.1.3 ). the metrology section can be calibrated using the gain and phase adjustment factors accessible to the ce. the gain adjust ment is used to compensate for tolerances of components used for signal conditioning, especially the resistive components. phase adjustment is provided to compensate for phase shifts intro duced by the current sensors or by the effects of reactive power supplies . due to the flexibility of the mpu firmware, any calibration method, such as calibration based on energy, or current and voltage can be implemented. it is also possible to implement segment - wise calibration (depending on current range). the 71m6533 and 71m6534 supports common industry standard calibration techniques, such as single - point (energy - only), multi - point (energy, vrms, irms), and auto - calibration. downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 79 5 f irmware i nterface 5.1 i/o ram and sfr map C functional order in table 53 , unimplemented (u) and reserved (r) bits are shaded in light gray. unimplemented bits have no memory stor age, writing them has no effect, and reading them always returns zero. reserved bits may be in use and should not be changed from the values given in parentheses. writing values other than those shown in parenthesis to reserved bits may have undesirable side effects and must be a voided. non - volatile bits are shaded in dark gray. non -v olatile bits are backed - up during power failures if the system includes a battery connected to the vbat pin. this table lists only the sfr registers that are not generic 8051 sfr registers. bits marked with ? (e.g. umux_e ? ) apply to the 71m6534 only. table 53 : i/o ram map C functional order name addr ess bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 configuration: ce0 2000 equ[2:0] ce_e ce10mhz u ce1 2001 pre_samps[1:0] sum_cycles[5:0] ce2 2002 u chop_e[1:0] rtm_e wd_ovf ex_rtc ex_xfr comp0 2003 u pll_ok u u u u u comp stat config0 2004 vref_cal pls_inv u ckout_e vref_dis mpu_div[2:0] config1 2005 r (0) r(0) eck_dis m26mhz adc_e mux_alt u m40mhz version 2006 version[7:0] config2 2007 opt_txe[1:0] ex_pll ex_fwcol fir_len[1:0] opt_fdc[1:0] ce3 209d u u u u mux_div[3:0] ce4 20a7 boot_size[7:0] ce5 20a8 ce_lctn[7:0] wake 20a9 wake_arm sleep lcd_only u wake_res wake_prd[2:0] tmux 20aa u u u tmux[4:0] anactrl 20ab r (0000) lcd_dac [2:0] chop_i_en config3 20ac u u sel_ibn chop_ib u u sel_ian chop_ia config4 20ad u u sel_idn chop_id u u sel_icn chop_ic interrupts and wd timer: intbits sfr f8 wd_rst int6 int5 int4 int3 int2 int1 int0 iflags sfr e8 ie_pllfall ie_pllrise ie_wake ie_pb ie_fwcol1 ie_fwcol0 ie_rtc ie_xfer downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 80 re v 2 name addr ess bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 digital i/o: 20af u u u u u dio_rrx[2:0] dio0 2008 dio_eex[1:0] opt_rxdis opt_rxinv dio_pw dio_pv opt_txmod opt_txinv dio1 2009 u dio_r1[2:0] u di_rpb[2:0] dio2 200a u dio_r3[2:0] u dio_r2[2:0] dio3 200b u dio_r5[2:0] u dio_r4[2:0] dio4 200c u dio_r7[2:0] u dio_r6[2:0] dio5 200d u dio_r9[2:0] u dio_r8[2:0] dio6 200e u dio_r11[2:0] u dio_r10[2:0] 200f r (00) u u dio_px dio_py u u umux_e ? umux_sel ? dio7 / p0 sfr 80 dio_0[7:0] (port 0) dio8 sfr a2 dio_dir0[7:1] u dio9 / p1 (port 1) sfr 90 dio_1[7:5] u dio_1[3 :0] dio_1[4] ? dio10 sfr 91 dio_dir1[7:5] u dio_dir1[3:0] dio_dir[4] ? dio11 / p2 (port 2) sfr a0 dio_2[7] u dio_2[5:0] dio_2[6] ? dio12 sfr a1 dio_dir2[7] u dio_dir2[5:0] dio_dir2[6] ? p3 sfr b0 u dio3[6] dio3[5] u dio3[3] dio3[2] dio3[1] dio3[0] dio3[4] ? flash: erase sfr 94 flsh_erase[7:0] flshctl sfr b2 preboot secure wrprot_bt wrprot_ce u u flsh_meen flsh_pwe fl_bank sfr b6 u u u u u u fl_bank[1:0] fl_bank[2:0] ? pgadr sfr b7 flsh_pgadr[5:0] u u real time clock : rtcctrl 2010 u u u u u u u rst_subsec rtca_adj 2011 u rtca_adj[6:0] subsec1 2014 subsec[7:0] downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 81 name addr ess bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 rtc0 2015 u u rtc_sec[5:0] rtc1 2016 u u rtc_min[5:0] rtc2 2017 u u u rtc_hr[4:0] rtc3 2018 u u u u u rtc_day[2:0] rtc4 2019 u u u rtc_date[2:0] rtc5 201a u u u u rtc_mo[3:0] rtc6 201b rtc_yr[7:0] rtcadj_h 201c u u u u u preg[16:14] rtcadj_m 201d preg[13:6] rtcadj_l 201e preg[5:0] qreg[1:0] we 201f rtc write protect register (write data is discarded) lcd display interface: lcdx 2020 mux_sync_e bme r (0) r (0) u u u u lcdy 2021 u lcd_y lcd_e lcd_mode[2:0] lcd_clk[1:0] lcd_map0 2023 see the detailed description for lcd_bitmap[ ] in table 54 : i/o ram description C alphabetical lcd_map 5 202 8 lcd_map6 ? 2029 lcd0 2030 see the detailed description for lcd_seg[ ] in table 54 : i/o ram description C alphabetical lcd41 2059 lcd_blnk 205a lcd_blkmap19[3:0] lcd_blkmap18[3:0] area reserved for factory test: rtm0h 2060 u rtm0[9:8] rtm0l 2061 rtm0[7:0] rtm1h 2062 u rtm1[9:8] rtm1l 2063 rtm1[7:0] rtm2h 2064 u rtm2[9:8] rtm2l 2065 rtm2[7:0] rtm3h 2066 u rtm3[9:8] rtm3l 2067 rtm3[7:0] downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 82 re v 2 name addr ess bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 spi interface: spi 2070 spe u u u u u u u sp_cmd 2071 sp_cmd[7:0] sp_adh 2072 sp_addr[15:8] sp_adl 2073 sp_addr[7:0] pulse generator: pls_w 2080 pls_maxwidth[7:0] pls_i 2081 pls_interval[7:0] adc mux : slot0 2090 slot1_sel[3:0] slot0_sel[3:0] slot1 2091 slot3_sel[3:0] slot2_sel[3:0] slot2 2092 slot5_sel[3:0] slot4_sel[3:0] slot3 2093 slot7_sel[3:0] slot6_sel[3:0] slot4 2094 slot9_sel[3:0] slot8_sel[3:0] slot5 2096 slot1_altsel [3:0] slot0_altsel [3:0] slot6 2097 slot3_altsel [3:0] slot2_altsel [3:0] slot7 2098 slot5_altsel [3:0] slot4_altsel [3:0] slot8 2099 slot7_altsel [3:0] slot6_altsel [3:0] slot9 209a slot9_altsel [3:0] slot8_altsel [3:0] spi interrupt: spi0 20b0 u u u ien_spi u u u ien_wd_ nrovf spi1 20b1 u u u spi_flag u u u wd_nrovf_ flag general - purpose and n on v olatile registers: gp0 20c0 gp0[7:0] gp7 20c7 gp7[7:0] version 20c8 version[7:0] serial eeprom: eedata sfr 9e eedata[7:0] eectrl sfr 9f eectrl[7:0] ? 71m6534 only downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 83 5.2 i/o ram d escription C alphabetical order the following conventions apply to the descriptions in this table: ? bits with a w (write) direction are written by the mpu into configuration ram . typically, they are initially stored in flash memory and copied to the configuration ram by the mpu. some of the more frequently programmed bits are mapped to the mpu sfr memory space. the r emaining bits are mapped to 2xxx . ? bits with an r (read) direct ion can be read by the mpu . ? columns labeled reset and wake describe the bit values upon reset and wake, respectively . nv in the wake column means the bit is powered by the nonvolatile supply and is not initialized. lcd - related registers labeled l retain data upon transition from lcd mode to brown out mode and vice versa, but do not retain data in sleep mode. C means that the value is undefined. ? write - only bits will return zero when they are read. ? bits marked with an asterisk ( e.g. dio_dir1[4 ] ? ) are applicable to the 71m6534 only. table 54 : i/o ram description C alphabetical (by bit name) name location reset wake dir description adc_e 2005[3] 0 0 r/w enables adc and vref . when disabled, removes bias current . bme 2020[6] 0 C r/w battery measure enable. when set, a load current is immediately applied to t he battery and it is connected to the adc to be measured on alternative mux cycles . see the mux_alt bit. boot_size[7:0] 20a7[7:0] 01 01 r/w end of space r eserved for boot program . the ending address of the boot region is 1024* boot_size . ce10mhz 2000[3] 0 0 r/w ce clock select . when set, the ce is clocked at 10 mhz . otherwise, the ce clock frequency is 5 mhz. ce_e 2000[4] 0 0 r/w ce enable. ce_lctn[7:0] 20a8[7:0] 0x31 0x31 r/w ce program location . the starting address for the ce program is 1024* ce_lctn . chop_e[1:0] 2002[5:4] 00 00 r/w chop enable for the reference bandgap circuit . the value of chop will change on the rising edge of muxsync according to the value in chop_e : 00 = toggle , except at the mux sync edge at the end of sumcycle, an alternative mux frame is automatically inserted at the end of each accumulation interval. 01 = positive . 10 = reversed . 11 = toggle , no alternative mux frame is inserted chop_i_en 20ab[0] 0 0 r/w when chop_i_en i s set, chop mode for the analog current inputs can be enabled with the chop_ia , chop_ib , chop_ic, and chop_id bits. chop_ia chop_ib chop_ic chop_id 20ac[0] 20ac[4] 20ad[0] 20ad[4] 0 0 0 0 0 0 0 0 r/w when chop_i_en i s set, these bits enable chop mode for the respective channel. downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 84 re v 2 ckout _e 2004[4 ] 0 0 r /w contro l bit for the seg19/ckout pin: 0: the pin is the seg19 lcd driver 1: the pin is the ck_fir output (5 mhz in mission mode, 32 khz in brownout mode) compstat 2003[0 ] -- -- r status bit for the v1 comparator (same as v1_ok, see tmuxout ). di_rpb[2:0] dio_r1[2:0] dio_r2[2:0] dio_r3[6:4] dio_r4[2:0] dio_r5[2:0] dio_r6[2:0] dio_r7[2:0] dio_r8[2:0] dio_r9[2:0] dio_r10[2:0] dio_r11[2:0] dio_rrx[2:0]* 2009[2:0] 2009[6:4] 200a[2:0] 200a[6:4] 200b[2:0] 200b[6:4] 200c[2:0] 200c[6:4] 200d[2:0] 200d[6:4] 200e[2:0] 200e[6:4] 20af[2:0] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 r/w connects dedicated i/o pins dio1 through dio11 as well as input pins pb to internal resources. if more than one input is connected to the same resource, the multiple col umn in the table below specifies how they are combined. dio_rx [2:0] resource m ultiple 000 none -- 001 reserved or 010 t0 ( counter / timer 0 clock or gate) or 011 t1 ( counter / timer 1 clock or gate) or 100 high priority io interrupt (int0 rising) or 101 low priority io interrupt (int1 rising) or 110 high priority io interrupt (int0 falling) or 111 low priority io interrupt (int1 falling) or * dio_rrx applies to the rx pin. dio_dir0[7:1] sfr a2 [7:1] 0 C r/w programs the direction of pins dio7 through dio 1. writing a 1 indicates an output. a bit is ignored if the corresponding pin is not configured as dio. see dio_pv and dio_pw for special options for dio6 and dio7. see dio_eex [1:0] for special options for dio4 and dio5. dio_dir1[7: 5, 3:0] , dio_dir1[4 ] ? sfr 91 0 C r/w programs the direction of pins dio15 through dio 8. writing a 1 indicates an output. a bit is ignored if the corresponding pin is not configured as di o. see dio_px and dio_p y for special options for the dio8 and dio9 outputs. ? dio_dir1[4] controlling dio12 is only applicable to the 71m6534. dio_dir2[ 7,5:0] dio_dir2[6 ] ? sfr a1 0 C r/w programs the direction of pins dio23 through dio16 . writing a 1 indicates an output. a bit is ignored if the corresponding pin is not configured as a dio. ? dio_dir2[6] controlling dio22 is only applicable to the 71m6534. dio_56 dio_57 dio_58 2052[4 ] 2053[4 ] 2054[4 ] 0 0 0 C C C r/w the value on dio pins 56 through 58. the mpu writes data to these registers to change the data on these pins. dio_dir56 dio_dir57 dio_dir58 2052[7 ] 2053[7 ] 2054[7 ] 0 0 0 C C C r/w programs the direction of dio pins 56 through 58. writing a 1 indicates an output. downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 85 dio_0[7:0] dio_1[7 :0 ] dio_2[7 :0] dio_3[6:0] sfr 80 sfr 90 sfr a0 sfr b0 0 0 0 0 C C C C r/w the value on the dio pins. pins configured as lcd will read zero. when written, changes data on pins configured as outputs. pins configured as lcd or input will ignore writes. dio_0[7:0] corresponds to dio7 through dio1 and pb ( pb is read on dio_0[0] ) . dio_1[7:0] corresponds to dio15 through dio8. ( dio_1[4] corresponding to dio12 is only applicable to the 71m6534) dio_2[ 7:0 ] corresponds to dio23 through dio16. ( dio_2[4] corresponding to dio22 is only applicable to the 71m6534) dio_3[ 6:0] corresponds to dio30 through dio 24. ( dio_3[4] corresponding to dio2 8 is only applicable to the 71m6534) dio_eex[1:0] 2008[7:6] 0 0 r/w when set, converts dio4 and dio5 to interface with external eeprom. dio4 becomes sdck and dio5 becomes bi - directional sdata. dio_eex[1:0] function 00 disable eeprom interface 01 2- wire eeprom interface 10 3- wire eeprom interface 11 -- not used -- dio_pv 2008[2] 0 0 r/w causes varpulse to be output on dio7. dio_pw 2008[3] 0 0 r/w causes wpulse to be output on dio6. dio_px 200f[3] 0 0 r/w causes xpulse to be output on dio8 . dio_py 200f[2] 0 0 r/w causes ypulse to be output on dio9 . eedata[7:0] sfr 9e 0 0 r/w serial eeprom interface data . eectrl[7:0] sfr 9f 0 0 r/w serial eeprom interface control . eck_dis 2005[5] 0 0 r/w emulator clock disable. when eck_dis = 1 , the emulator clock is disabled. if eck_dis is set, the emulator and programming devices will be unable to erase or program the device. equ[2:0] 2000[7:5] 0 0 r/w specifies the power equation to be used by the ce. ex_xfr ex_rtc ex_fwcol ex_pll 2002[0] 2002[1] 2007[4] 2007[5] 0 0 0 0 0 0 0 0 r/w interrupt enable bits. these bits enable the xfer_busy, the rtc_1sec, the firmwarecollision (fwcol) , and pll interrupts. note that if one of these interrupts is to be enabled, its corresponding mpu ex enable must also be set. see section 1.4.9 interrupts for details. downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 86 re v 2 fir_len[1:0] 2007[3:2] 1 1 r/w fir_len[1:0] controls the length of the adc decimation fir filter. [ m40mhz, m26mhz ] fir_len [1:0] resulting fir filter cycles res ulting adc gain [00], [10], or [11] 00 138 0.110017 01 288 1.000 10 384 2.37037 [01] 00 186 0.113644 01 384 1.000 10 588 3.590363 fl_bank[1:0] fl_bank[2:0] ? sfr b6[ 1 :0] sfr b6[2:0] 1 1 r/w flash bank selection . flash memory above 32 k is mapped to the mpu address space from 0x8000 to 0xffff in 32 kb banks. when mpu address[15] = 1, the address in flash is mapped to fl_bank[1:0] or fl_bank[2:0 ] (71m6534 only ) , mpu address[14:0] . fl_bank [] is reset by the erase cycle. flsh_erase [7:0] sfr 94[7:0] 0 0 w flash erase initiate . (default = 0x00) . flsh_erase is used to initiate either the flash mass erase cycle or the flash page erase cycle. specific patterns are expected for flsh_erase in order to initiate the appropriate erase cycle. 0x55 = i nitiate flash page erase cycle. must be proceeded by a write t o flsh_pgadr @ sfr 0xb7. 0xaa = initiate flash mass erase cycle. must be proceeded by a write to flsh_meen @ sfr 0xb2 and the debug (cc) port must be enabled. any other pattern written to flsh_erase will have no effect. the erase cycle is not completed until 0x00 is written to flsh_erase . flsh_meen sfr b2[1] 0 0 w mass erase enable . 0 = mass erase disabled (default). 1 = mass erase enabled. must be re - written for each new mass erase cycle. flsh_pgadr [5:0] sfr b7 [7:2] 0 0 w flash page erase address . (d efault = 0x00) flsh_pgadr[5:0] with fl_bank[2 :0] , sets the flash page address (page 0 through 127) that will be erased during the page erase cycle . must be re - written for each new page erase cycle . flsh_pwe sfr b2[0] 0 0 r/w program write enable. this bit must be cleared by the mpu after each by te write op eration. writes to this bit are inhibited when interrupts are enabled. 0 = movx commands refer to xram space, normal operation (default). 1 = movx @dptr,a moves a to program space (flash) @ dptr. fovride 20fd[4] 0 0 r/w permits the values written by the mpu to temporarily override the values in the fuse register (reserved for production test). downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 87 gp0 gp7 20c0 20c7 0 0 nv nv r/w non - volatile general - purpose registers powered by the rtc supply. these registers maintain their value in all power modes, but will be cleared on reset. the values of gp0gp7 will be undefined if vbat drops below the minimum value. ie_fwcol0 ie_fwcol1 sfr e8[2] sfr e8[3] 0 0 0 0 r/w r/w interrupt flags for the firmware collision interrupt. see the flash memory section for details. ie_pb sfr e8[4] 0 C r/w pb flag. indicates that a rising edge occurred on pb. firmware must write a zero to this bit to clear it. the bit is also cleared when the mpu re quests sleep or lcd mode. on bootup, the mpu can read this bit to determine if the part was woken with the pb dio0[0]. ie_pllrise sfr e8[6] 0 0 r/w indicates that the mpu was woken or interrupted (int4) by system power becoming available, or more precisely, by pll_ok rising. the f irmware must write a zero to this bit to clear it . ie_pllfall sfr e8[7] 0 0 r/w indicates that the mpu has entered brownout mode because s ystem power has become unavailable (int4), or more precisely, because pll_ok fell. t his bit will not be set if the part wakes into brownout mode because of pb or the wake timer. the f irmware must write a zero to this bit to clear it. ien_spi 20b0[4] r/w spi interrupt enable. ien_wd_nrovf 20b0[0] 0 0 r/w active high watchdog near overflow interrupt enable. ie_xfer ie_rtc sfr e8[0] sfr e8[1] 0 0 0 0 r/w interrupt flags. these flags monitor the xfer_busy interrupt and the rtc_1sec interrupt. the flags are set by hardware . ie_wake sfr e8[5] 0 C r/w indicates that the mpu was awakened by the autowake timer. this bit is typically read by the mpu on bootup. the f irmware must write a zero to this bit to clear it . intbits sfr f8[6:0] C C r/w interrupt inputs. the mpu may read these bits to see the status of external interrupts int0, int1 up to int6. these bits do not have any memory and are primarily intended for debug use. lcd_bitmap [31:24] 2023[7:0] 0 l r/w configuration for dio11/seg31 through dio4/seg24. unused bits should be set to zero. 1 = lcd pin, 0 = dio pin. lcd_bitmap [39: 32 ] 2024[7: 0] 0 l r/w configuration for dio19/seg39 through dio 12 / seg32 . lcd_bitmap[32] , corresponding to dio12/seg32 , is only applicable to the 71m6534. unused bits should be set to zero. 1 = lcd pin, 0 = dio pin. lcd_bitmap [47: 40 ] 2025[7: 0] 0 l r/w configuration for dio27/seg47 through dio20/seg40. lcd_bitmap[42], corresponding to dio22/seg42 , is only applicable to the 71m6534. unused bits should be set to zero. 1 = lcd pin, 0 = dio pin. lcd_bitmap [50:48] 2026[2: 0] 0 l r/w configuration for dio30/seg50 through dio28/seg48 . lcd_bitmap[48 ] , corresponding to dio28/seg48 , is only applicable to the 71m6534. unused bits should be set to zero. 1 = lcd pin, 0 = dio pin. downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 88 re v 2 lcd_bitmap [63:61] , [59:56 ] ? 2027[7:5,3:0] 0 l r/w configuration for dio43/seg63 through dio41/seg61 and dio39/seg59 through dio36/seg56. lcd_bitmap[62], corresponding to dio42/seg62 , and lcd_bitmap[59:56] , corresponding to dio39/seg59 through dio36/seg56 , are only applicable to the 71m6534. u nused bits should be set to zero . 1 = lcd pin, 0 = dio pin. lcd_bitmap [71 :64] 2028 [7 :0] 0 l r/w configuration for d io51 / seg71 through dio44/seg64. lcd_bitmap[66], corresponding to dio46/seg66 , is only applicable to the 71m6534. unused bits should be set to zero. 1 = lcd pin, 0 = dio pin. lcd_blkmap18 [3:0] 205a[3:0] 0 l r/w identifies which segments connected to seg18 should blink. 1 means blink. the m ost sign ificant bit corresponds to com3, the least significant bit to com0. lcd_clk[1:0] 2021[1:0] 0 l r/w sets the lcd clock frequency for the c om/seg pins ( not the frame rate) according to the following (f w = 32768 hz ): 00 = f w / 51 2, 01 = f w /256, 10 = f w /128 , 11 = f w / 64 lcd_dac[2:0] 20ab[3:1] 0 l r/w lcd contrast control dac. adjusts the lcd voltage in steps of 0.2 v from v3p3sys (mission mode) or vbat ( brownout /lcd modes). lcd_dac[2:0] resulting lcd voltage 000 v3p3 or vbat 001 v3p3 or vbat C 0. 2 v 010 v3p3 or vbat C 0. 4 v 011 v3p3 or vbat C 0. 6 v 100 v3p3 or vbat C 0. 8 v 101 v3p3 or vbat C 1. 0 v 110 v3p3 or vbat C 1. 2 v 111 v3p3 or vbat C 1. 4 v lcd_e 2021[5] 0 l r/w enables the lcd display. when disabled, vlc2, vlc1 and vlc0 are ground as are the com and seg outputs. lcd_mode[2:0] 2021[4:2] 0 l r/w the lcd bias mode. use the lcd dac to reduce saturation. the number of states is the number of commons which are driven to multiplex the lcd. lcd_mode[2:0] function notes 00 0 4 states, ? bias ? bias modes can drive 3.3 v lcds. 001 3 states, ? bias 0 10 2 states, ? bias ? bias and static modes can drive both 3.3 v and 5 v lcds. 0 11 3 states, ? bias 100 static display downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 89 lcd_only 20a9[5] 0 0 w puts the 71m6533/71m6534 to sleep, but with the lcd display still active. lcd_only is ignored if system power is present. while in sleep mode, the device will wake up on reset, when the autowake timer times out, when the push button is pushed, or when system power returns. lcd_seg0[3:0] lcd_seg 18[3:0] 2030[3:0] 204 2 [3:0] 0 0 l l r/w lcd segment data. each word contains information for 1 to 4 time divisions of each segment. in each word, bit 0 corresponds to com0, bit 1 to com1, bit 2 to com2 and bit 3 to com3 of the first segment. bits 4 through 7 correspond to com0 to com3, respectively , of the second segment. care should be taken when writing to lcd_seg locations since some of them control dio pins. lcd_seg32, lcd_seg42, lcd_seg48, lcd_seg51 t hrough lcd_seg59, lcd_seg62, lcd_seg66 , and lcd_seg72 through lcd_seg75 are only applicable to the 71m6534. lcd_seg19 [3:0] lcd_seg 31[3:0] 2043[3:0] 204 f [3:0] 0 0 l l r/w lcd_seg32[3:0 ] ? 2050[3:0] 0 l r/w lcd_seg33[3:0] lcd_seg41[3:0] 2051[3:0] 2059[3:0] 0 0 l l r/w lcd_seg42[3:0 ] ? 2030[7:4] 0 l r/w lcd_seg43[3:0] lcd_seg47[3:0] 2031[7:4] 2035[7:4] 0 0 l l r/w lcd_seg48[3:0 ] ? 2036[7:4] 0 l r/w lcd_seg49[3:0] lcd_seg50[3:0] 2037[7:4] 2038[7:4] 0 0 l l r/w r/w lcd_seg51[3:0 ] ? lcd_seg59[3:0 ] ? 2039[7:4] 2041[7:4] 0 0 l l r/w lcd_seg61[3:0] 2043[7:4] 0 l r/w lcd_seg62[3:0 ] ? 2044[7:4] 0 l r/w lcd_seg63[3:0] lcd_seg65[3:0] 2045[7:4] 2047 [7:4 ] 0 0 l l r/w lcd_seg6 6 [3:0 ] ? 2048[7:4] 0 l r/w lcd_seg67[3:0] lcd_seg71[3:0] 2049[7:4] 204d[7:4] 0 0 l l r/w lcd_seg72[3:0 ] ? lcd_seg75[3:0 ] ? 204e[7:4] 2051[7:4] 0 0 l l r/w downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 90 re v 2 lcd_y 2021[6] 0 l r/w lcd blink frequency (ignored if blink is disabled or if the segment is off). 0 = 1 hz (500 ms on, 500 ms off) 1 = 0.5 hz (1 s on, 1 s off) m26mhz m40mhz 2005[4] 2005[0] 0 0 0 0 r/w r/w m26mhz and m40mhz set the master clock (mck) frequency. the se bits are reset on chip reset and may only be set. attempts to write zeroes to m40mhz and m26mhz are ignored. m40mhz m26mhz mck frequency 0 0 20 mhz 0 1 26.7 mhz 1 0 40 mhz 1 1 40 mhz mpu_div[2:0] 2004[2:0] 0 0 r/w the mpu clock divider (from mck). these bits may be programmed by mpu without risk of losing control. mpu_div [2:0] resulting clock f requency 000 mck/4 001 mck/8 010 mck/ 16 011 mck/ 32 100 mck/ 64 101 mck/ 128 110 mck/ 265 111 mck/2 65 mux_alt 2005[2] 0 0 r/w the mpu asserts this bit when it wishes the mux to perform adc conversions on an alternate set of inputs. if chop_e is 00, mux_alt is automatically asserted once per sum cycle, when xfer_busy falls. mux_div[3:0] 209d[3:0 ] 0 0 r/w the number of states in the input multiplexer. mux_sync_e 2020[7] 0 0 r/w when set, seg7 outputs mux_sync. otherwise, seg7 is an lcd pin. opt_fdc[1:0] 2007[1:0] 0 0 r/w selects the modulation duty cycle for opt_tx . opt_fdc [1:0] function 00 50% low 01 25% low 10 12.5% low 11 6.25% low downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 91 opt_rxdis 2008[5] 0 0 r/w configures opt_rx to an analog input to the optical uart comparator or as a digital input/output, dio1. 0 = opt_rx, 1 = dio1. opt_rxinv 2008[4] 0 0 r/w inverts the result from the opt_rx comparator when 1. affects only the uart input. has no effect when opt_rx is used as a dio input. opt_txe[1:0] 2007[7:6] 00 00 r/w configures the opt_tx output pin. opt_txe [1:0] function 00 opt_tx 01 dio2 10 wpulse 11 rpulse opt_txinv 2008[0] 0 0 r/w invert s opt_tx when 1. this inversion occurs before modulation. opt_txmod 2008[1] 0 0 r/w enables modulation of opt_tx. when opt_txmod is set, opt_tx is modulated when it would otherwise have been zero. the modulation is applied after any inver sion caused by opt_txinv . pll_ok 2003[6] 0 0 r indicates that system power is present and the clock generation pll is settled. pls_maxwidth [7:0] 2080[7:0] ff ff r/w determines the maximum width of the pulse (low going pulse). the m aximum pulse width is (2*pls_maxwidth + 1)*t i . where t i is pls_interval . if pls_interval = 0, t i is the sample time (397 s). if set to 255, pulse width control is disabled and pulses are output with a 50% duty cycle. pls_interval [7:0] 2081[7:0] 0 0 r/w for pulse_w and pulse_v only, i f the fifo is used, pls_interval must be set to 81 . if pls_interval = 0, the fifo is not used and pulses are output as soon as the ce issues them. pls_inv 2004[6] 0 0 r/w inverts the polarity of the pulse outputs normally, these pulses are active low. when inverted, they become active high. preboot sfrb2[7] C C r indicates that the preboot sequence is active. preg[16:0] 201c[2:0] 201d[7:0] 201e[7:2] 4 0 0 nv nv nv r/w r/w r/w rtc adjust. see s ection 1.5.3 real - time clock (rtc) for additional details . 0x0ffbf preg 0x10040 preg [16:0] and qreg [1:0] are separate in hardware but can be programmed with a single number calculated by the mpu. . preg [16:0] and qreg [1:0] are non - volatile, but have no correcting function in sleep mode. pre_samps[1:0] 2001[7:6] 0 0 r/w the duration of the pre - summer, in samples. pre_samps [1:0] pre -s ummer duration 00 42 01 50 10 84 11 100 downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 92 re v 2 qreg[1:0] 201e[1:0] 0 nv r/w rtc adjust. see s ection 1.5.3 real - time clock (rtc) for additional details. rst_subsec 2010[0] 0 nv r/w the sub - second counter is restarted when a 1 is written to this bit. rtca_adj[6:0] 2011[6:0] 40 C r/w analog rtc adjust. see s ection 1.5.3 real - time clock (rtc) for additional detail s. rtc_sec[5:0 rtc_min[5:0] rtc_hr[4:0] rtc_day[2:0] rtc_date[4:0] rtc_mo[3:0] rtc_yr[7:0] 2015 2016 2017 2018 2019 201a 201b * * * * * * * nv nv nv nv nv nv nv r/w these are the year, month, day, hour, minute and second parameters of the rtc. w riting to these registers sets the time. each write to one of these registers must be preceded by a write to 0x201f ( we ). valid values for each parameter are: sec: 00 to 59, m in : 00 to 59, hr: 00 to 23 (00 = midnight) day : 01 to 07 (01 = sunday), date: 01 to 31 , mo: 01 to 12 yr : 00 to 99 (00 and all others divisible by 4 are leap years) values in the rtc registers are undefined when the ic powers up without a battery but are maintained through mission and battery modes when a sufficient voltage is maintained at the vbat pin. write operations to these registers are delayed by one second. there is n o change of value at reset if the voltage at vbat is within specification . rtm_e 2002[3] 0 0 r/w real time monitor en able (rtm) . when 0 , the rtm output is low. rtm0[7:0] rtm1[7:0] rtm2[7:0] rtm3[7:0] 2060[9:8] 2061[7:0] 2062[9:8] 2063[7:0] 2064[9:8] 2064[7:0] 2065[9:8] 2066[7:0] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 r/w the f our rtm probes. before each ce code pass, the values of these registers are serially output on the rtm pin. the rtm registers are ignored when rtm_e = 0. secure sfrb2[6] 0 C r/w when set, enables security provisions that prevent external reading of flash memory and ce program ram (zeros will be returned if the memory is read) . it should be set while preboot is set. secure is cleared when the flash is mass - erased and on chip reset. the bit may only be set , a ttempts to write zero are ignored . sleep 20a9[6] 0 0 w puts the 71m6533/71m6534 in to sleep mode. this bit is i gnored if system power is present. the 71m6533 and 71m6534 will wake when the autowake timer times out, when the push button is pushed, when system power returns or when reset goes high. sel_ian sel_ibn sel_icn sel_idn 20ac[1] 20ac[5] 20ad[1] 20ad[5] 0 0 0 0 0 0 0 0 r/w when set to 1, selects differential mode for the corresponding current input (ia, ib, ic, or id). when 0, the input remains single - ended. slot0_sel[3:0] slot1_sel[3:0] slot 8_sel[3:0] slot 9_sel[3:0] 2090[3:0] 2090[7:4] 2094[3:0] 2094[7:4] 0 1 8 9 0 1 8 9 r/w primary multiplexer frame analog input selection. these bits map the selected input, 0-9 to the multiplexer state. t he adc output is always written to the memory location corresponding to the input , regardless of which multiplexer state an input is mapped to (see section 1.1 error! not a valid result for table. ). downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 93 slot0_altsel [3:0] slot1_altsel [3:0] slot2_altsel [3:0] slot8_altsel [3:0] slot9_altsel [3:0] 2096[3:0] 2096[7:4] 2097[3:0] 209a[3:0] 209a[7:4] 10 1 11 8 9 10 1 11 8 9 r/w alternate multiplexer frame analog input selection. maps the selected input, 0 - 11, to the multiplexer state. the additional inputs, 10 and 11 in the alternate frame are: 10 = temp 11 = vbat sp_addr[15:8] sp_addr[7:0] 2072[7:0] 2073[7:0] C C r r spi address. 16 - bit address from the bus master. sp_cmd 2071 C C r spi command. 8 - bit command from the bus master. spe 2070[7] 0 0 r/w spi port enable. enables the spi interface on pins seg3 through seg 6. spi_flag 20b1[4] r/w spi interrupt flag. the flag is s et by the hardware and is cleared by the firmware writing a 0. firmware using this interrupt should clear the spurious interrupt indication during initialization. subsec[7:0] 2014[7:0] C C r the remaining count, in terms of 1/256 rtc cycles, to the next one second boundary. subsec may be read by the mpu after the one second interrupt and before reaching the next one second boundary. setting rst_subsec will clear subsec . sum_cycles[5:0] 2001[5:0] 0 0 r/w the number of pre - summer outputs summed in the final summer. tmux[4:0] 20aa[4:0] 2 C r/w selects one of 32 signals for tmuxout. for details, see section 1.5.13 test ports (tmuxout p in) . trim[7:0] 20ff 0 0 r/w contains tri m t[7 :0] , trimbga , trimbgb or trimm[2:0] depending on the value written to trimsel[3:0] . if trimbgb = 0, the device is a 71m6533/71m6534, else it is a 71m6533h/71m6534h. trimsel[3:0] 20fd[3:0] 0 0 r/w selects the temperature trim fuse to be read with the trim register: trimsel[3:0] trim fuse purpo se 1 tri m t[7 :0] trim for the magnitude of vref 4 trimm[2:0] trim values related to temperature compensation 5 trimbga 6 trimbgb umux_e ? 200f[7] 0 0 r/w enables the optical uart multiplexer, selects the alternate function (mtx, mrx) for dio18 , dio 22 . umux_sel ? s00f[6] 0 0 r/w when umux_e = 1, selects between opt_tx, opt_rx and mtx, mrx as the optical uart i/o pins. 0 = opt_tx, opt_rx, 1 = mtx, mrx downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 94 re v 2 version[7:0] 2006 20c8 C C C C r r the device version index. this word may be read by the firmware to determine the silicon version. version[7:0] silicon version 0000 0101 a05 vref_cal 2004[7] 0 0 r/w brings vref to the vref pad. this feature is disabled when vref_dis =1 . vref_dis 2004[3] 0 0 r/w disables the internal voltage reference. wake_arm 20a9[7] 0 C w writing a 1 to this bit arms the autowake timer and presets it with the values presently in wake_prd and wake_res . the autowake timer is reset and disarmed whenever the processor is in mission mode or brownout mode. the timer must be armed at least three rtc cycles before the sleep or lcd - only mode is commanded. wake_prd 20a9[2:0] 001 C r/w sleep time. time = wake_prd[2:0] * wake_res . the d efault = 001. the m aximum value is 7. wake_res 20a9[3] 0 C r/w resolution of wake timer: 1 = 1 minute, 0 = 2.5 seconds. wd_nrovf_ flag 20b1[0] C 0 r/w this flag is s et approximately 1 ms before the watchdog timer overflows. it is c leared by writing a 0 or on the falling edge of wake. wd_rst sfr f8[7] 0 0 w wd timer bit. this bit must be accessed with byte operations. operations p ossible for this bit are: write 0: clears the flag. write 1 : resets the wdt . wd_ovf 2002[2] 0 nv* r/w the wd t overflow status bit , set when the wd t overflows. it is p reserved in lcd mode and will indicate at bootup if the part is recovering from a wd t overflow or a power fault. this bit should be cleared by the mpu on bootup. it is also automatically cleared when reset is high. *not preserved in sleep mode we 201f[7:0] w an 8 - bit value has to be written to this address prior to accessing the rtc registers. wrprot_bt sfr b2[5] 0 0 when set, this bit protects flash addresses from 0 to boot_size *1024 from flash page erase. wrprot_ce sfr b2[4] 0 0 when set, this bit protects flash address es from ce_lctn *1024 to the end of memory from flash page erase. ? applicable to the 71m6534 only. downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 95 5.3 ce interface description 5.3.1 ce program the ce performs the precision computations necessary to accurately measure power. these computa tions include offset cancellation, phase compensation, product smoothing, produc t summation, frequency de tection, var calculation, sag detec tion and voltage phase measurement. all data computed by the ce is dependent on the selected meter equation as given by equ [2:0] (in i/o ram). as a function of equ [2:0] , the element components v0 through i2 take on different meanings. the teridian ce program is supplied as a data image that can be merged with the mpu operational code for meter applications . typically, the ce program covers most applications and does not need to be modified . other variations of the ce code may be available . the description in this section applies to ce code revision ce34a02d , which functions for both the 71m6533 and the 71m6534 . this version of the ce code does not process the id current channel. also available are ce codes capable of calculatin g and measuring the id channel . 5.3.2 ce data format all ce words are 4 bytes . unless specified otherwise, they are in 32 - bit twos complement format (- 1 = 0xffffffff) . calibration para meters are defined in flash memory (or external eeprom) and must be copied to ce data memory by the mpu before enabling the ce . internal variables are used in internal ce calculations . input variables allow the mpu to control the behavior of the ce code . output variables are outputs of the c e calculations . the corresponding mpu address for the most signi ficant byte is given by 0x0000 + 4 x ce_address and by 0x0003 + 4 x ce_address for the least significant byte. 5.3.3 constants constants used in the ce data memory tables are: ? sampling frequency : f s = 32768 hz/13 = 2520.62 hz. ? f 0 is the fundamental frequency of the mains phases . ? imax is the external rms current corresponding to 250 mv pk at the inputs ia , ib and ic . ? vmax is the external rms voltage corresponding to 250 mv pk at the va, vb and vc inputs. ? n acc , the accumulation count for energy measurements is pre_samps [1:0] * sum_cycles[5:0] . this value also resides in sum_pre (ce address 0x23) where it is used for phase angle measurement. ? the duration of the accumulation inte rval for energy m easurements is pre_samps [1:0] * sum_cycles[5:0] /f s . ? ln_8 is a gain constant of the current channel , n. its value is 8 or 1 and is controlled by in_shunt . ? x is a gain constant of the pulse generators. its value is determined by pulse_fast and pulse_slow . ? voltage lsb for sag detection = vmax * 7.879810 - 9 v. the system constants imax and vmax are used by the mpu to convert internal digital quantities (as used by the ce) to external, i.e. metering quantities. their values are determined by the scaling of the voltage and current sensors used in an actual meter. the lsb values used in this document relate digital quantities at the ce or mpu interface to external meter input quantities. for exam ple, if a sag thr eshold of 80 v peak is desired at the meter input, the digital value that should be pro grammed into sag_thr would be 80 v/ sag_thr lsb , where sag_thr lsb is the lsb value in the description of sag_thr . the parameters equ [2:0], ce_e, pre_samps [1:0] , and sum_cycles[5:0], essential to the function of the ce , are stored in i/o ram (see section 5.2 i/o ram d escription C alphabetical order ). downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 96 re v 2 5.3.4 environment before starting the ce using the ce_e bit, the mpu has to establish the proper environment for the ce by implementing the following steps: ? load the ce data into ram. ? establish the equation to be applied in equ [2:0] . ? establish the accumulation period and number of samples in pre_samps [1:0] and sum_cycles [5:0] . ? establish the number of cycles per adc multiplexer frame ( mux_div[3:0] ). ? apply proper values to slotn_sel [3:0] and slotn_altsel [3:0] . ? set pls_interval [7:0] to 81. ? select the proper values for fir_len[1:0] (1) and mux_div[3:0] (6 ). ? set chop_e[1:0] = 00 . ? initialize any mpu interrupts, such as ce_busy, xfer_busy, or a power failure detection interr upt. when different ce codes are used, a different set of environment parameters needs to be established. t he exact values for these parameters are stated in the application notes and other documentati on ac companying the ce codes. operating ce codes with environment parameters deviating from the values s pecified will lead to unpredictable results. typically, there are thirteen 32768 hz cycles per adc multiplexer frame (see figure 19 in the system timing summary section). this means that the product of the number of cycles per frame a nd the number of conversions per frame must be 12 (allowing for one settling cycle). the default configuration is fir_len = 1 (two cycles per conversion) and mux_div[3:0] = 6 (6 co nversions per mux cycle). during operation, chop_e[1:0] = 00 enables the automatic chopping mode and forces an alternate multiplexer sequence at regular intervals. this enables accurate temperature measurement. downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 97 5.3.5 ce calculations table 55 : ce equ [2:0] equations and element input mapping equ [ 2:0] watt & var formula (wsum/vars um) element input mapping w0sum/ var0sum w1sum/ var1sum w2sum/ var2sum i0sq sum i1sq sum i2sq sum 0* va ia (1 element, 2w 1 ) va*ia C C ia C C 1* va*(ia - ib)/2 (1 element, 3w 1 ) va*(ia - ib)/2 C C ia - ib ib C 2* va*ia + vb*ib (2 element, 3w 3 delta) va*ia vb*ib C ia ib C 3* va*(ia - ib)/2 + vc*ic (2 element, 4w 3 delta) va*(ia - ib)/2 C vc*ic ia - ib ib ic 4* va*(ia - ib)/2 + vb*(ic - ib)/2 (2 element, 4w 3 wye) va*(ia - ib)/2 vb*(ic - ib)/2 C ia - ib ic - ib ic 5 va*ia + vb*ib + vc*ic (3 element, 4w 3 wye) va*ia vb*ib vc*ic ia ib ic * only equ = 5 is supported by ce code version ce34a02d. 5.3.6 ce front end data (raw data) access to the raw data provided by the afe is possible by reading addresses 0 through b as shown in table 56 . table 56 : ce raw data access locations name address description ce mpu type ia fir data 0x00 0x00 input adc input data, valid at the end of the mux frame. the address mapping of analog inputs to memory is hard - wired in the adc converter circuit. va fir data 0 x01 0x04 input ib fir data 0x02 0x08 input vb fir data 0 x03 0x0c input ic fir data 0 x04 0x10 input vc fir data 0x05 0x14 input id fir data 0x06 0x18 input temp fir data 0x0a 0x28 input vbat fir data 0x0b 0x2c input internal chip id, version bytes 0x0f 003c read only upper 16 bits are zero. lower 16 bits are chip_id [ 15 :8 ], version [7:0]. this word is read only. internal last address 0x3ff 0xffc internal last memory location downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 98 re v 2 5.3.7 ce s tatus and control cestatus provides information about the status of voltage and input ac signal frequency, which are useful for generating early power fail warning s , e.g. to initiate necessary data storage. it contains sag warning flags for phase a, b, and c, as well as f0 , the derived clock operating at the fundamental input fre quency. cestatus re presents the status flags for the preceding ce code pass (ce_busy interrupt). sag alarms are not remembered from one code pass to the next. the ce status word is refreshed at every ce_busy interrupt. the significance of the bits in cestatus is shown in table 57 . ce address name description 0x80 cestatus see description of cestatus bits in table 57 . since the ce_busy interrupt typically occurs at 2520.6 hz, it is desirable to minimize the computation required in the interrupt handler of the mpu. rather than reading the ce status word at every ce_busy interrupt and interpret the sag bits, it is recommended that the mpu activate t he ypulse output to generate interrupts when a sag occurs (see the description of the ceconfig register) table 57 : cestatus (ce ram 0x80) bit definitions cestatus [bit] name description 31:29 not used these unused bits will always be zero. 28 f0 f0 is a square wave at the exact fundamental frequency for the phase selected with the freqseln bits in ceconfig . 27 sag_ c normally zero. becomes one when |vc| remains below sag_thr for sag _ cnt samples. will not return to zero until |vc| rises above sag_thr . 26 sag_b normally zero . becomes one when vb remains below sag_thr for sag_cnt samples . will not return to zero until vb rises above sag_thr . 25 sag_a normally zero . becomes one when va remains below sag_thr for sag_cnt samples . will not return to zero until va rises above sag_thr . 24: 0 not used these unused bits will always be zero. the ce is initialized by the mpu using ce config . t his register contains in packed form sag_cnt, freqsel 0 , freqsel 1, ext_pulse, i0_shunt, i1_shunt, pulse_slow, and pulse_fast . the ceconfig bit definitions are given in table 58 . ce address name data description 0x20 ceconfig 0x5020 see description of the ceconfig bits in table 58 . the sag_mask n bits enable sag detection for the respective phase when set to 1. when sag_int is set to 1, a sag event will generate a transition on the ypulse output. ia _shunt , ib _shunt and ic _shunt can configure their respective current inputs to accept shunt resistor sensors. in this case the ce provides an additional gain of 8 to the selected current input. wrate may need to be adjusted based on the values ix_shunt . the ce pulse generator can be controlled by either the mpu (external) or ce (internal) variables. control is by the mpu if ext_pulse = 1. in this case, the mpu controls the pulse rate by placing values into apulsew and apulser . by setting ext_pulse = 0, the ce controls the pulse rate based on wsum _x and varsum _x . downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 99 the ext_temp bit enables temperature compensation mode: ? when ext_temp = 0 (internal compensation), the ce will control the gain using gain_adj (see table 59 ) based on ppmc, ppmc2 and temp_x , the difference between die temperature and the ref erence / calibration temperature temp_nom . since ppmc and ppmc2 reflect the typical behavior of the reference voltage over temperature, the internal temperature com pensation eliminates the effects of temperature - related errors of vref only. ? when ext_temp = 1 (external compensation), the mpu is allowed to control the ce gain using gain_adj , based on any algorithm implemented in mpu code. the 71m6533 demo code creep function halts both internal and external pulse generation. the freqsel1 and freqsel0 bits select the phase used to control the ce - internal pll. ce accuracy depends on the channel selected by the freqsel1 and freqsel0 bits receiving a clean voltage signal. table 58 : ce config bit definitions ceconfig [bit] name default description [20] [19] [18] sag_mask2 sag_mask1 sag_mask0 0 0 0 when 1, enables sag interrupt based on phase c. when 1, enables sag interrupt based on phase b. when 1, enables sag interrupt based on phase a. if more than one sag mask is set, a sag interrupt will only be generated when all phases enabled for the interrupt sag. [17] sag_int 0 when 1, enables the sag interrupt to be output on the ypulse/ dio 9 pin (see section 1.5.7 ). [16] ext_temp 0 when set , enables the control of gain_adj by the mpu. when 0, enables the control of gain_adj by the ce . [15:8] sag_cnt 80 (0x50) the number of consecutive voltage samples below sag_thr before a sag alarm is declared. the maximum value is 255. sag_thr is at address 0x2 4. [7] freqsel1 0 the combination of freqsel1 and feqsel 0 selects the phase to be used for the frequency monitor, the phase - to - phase lag calculation , the zero crossing counter ( mainedge_x ) , and the f0 bit ( cestatus[28] ). fr e q sel1 fr e q sel0 phase se lected phases used for voltage phase lag calculation ph_ a to b_x ph_ a to c_x 0 0 a a-b a-c 0 1 b b-c b-a 1 0 c c-a c-b 1 1 not allowed [6] freqsel0 0 [5] ext_pulse 1 when zero, causes the pulse generators to respond to internal data ( wpulse = wsum_x , rpulse = varsum_x ) . otherwise, the generators respond to values the mpu places in apulsew and apulser . [4] ic_shunt 0 when 1, the current gain of channel c is increased by 8. the gain factor controlled by in_shunt is referred to as in_8 throughout this document. [3] ib_shunt 0 when 1, the current gain of channel b is increased by 8. [2] ia_shunt 0 when 1, the current gain of channel a is increased by 8. downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 100 re v 2 [1] pulse_fast 0 when pulse_fast = 1, the pulse generator input is increased 16x . when pulse_slow = 1, the pulse generator input is reduced by a factor of 64. these two bits control the pulse gain factor x (see table below). default is 0 for both (x = 6). pulse_slow pulse_fast x 0 0 1.5 * 2 2 = 6 0 1 1.5 * 2 6 = 96 1 0 1.5 * 2 -4 = 0.09375 1 1 do not use [0] pulse_slow 0 table 59 : sag threshold and gain adjust control ce address name default description 0x24 sag_thr 2.39*10 7 the voltage threshold for sag warnings. the default value is equivalent to 80 v rms if vmax = 600 v. the lsb value is vmax * 7.8798*10 -9 v. for example, if a sag threshold of 80 v rms is required: 7 9 10 39.2 10 8798 .7 2 80 _ ? = ? ? ? = ? vmax thr sag 0x40 gain_adj 16384 this register scales all voltage and current channels. the default value is equivalent to unity gain (1.000). 5.3.8 ce transfer v ariables when the mpu receives the xfer_busy interrupt, it knows that fresh data is available in the transf er variables . ce trans fer variables are modified during the ce code pass that ends with an xfer_busy interrupt. they remain constant throughout each accumulation interval. in this data sheet, the names of ce transfer variables always end with _x. the transfer variables can be categorized as: 1. fundamental energy measurement variables 2. instantaneous (rms) values 3. other measurement parameters fundamental energy measurement variables table 60 describes each transfer variable for fundamental energy measurement . all variables are signed 32 - bit integers . accumulated variables such as wsum are internally scaled so they have at least 2x margin before overflow when the integration time is one second . additionally, the hardware will not permit output values to fold back upon overflow . table 60 : ce transfer variables ce address name description 0x85 wsum_x the signed sum: w0sum_x+w1sum_x+w2sum_x . 0x86 w0sum_x the sum of wh samples from each wattmeter element . in_8 is the gain 1 or 8 as configured by in_shunt. lsb = 9.4045*10 - 13 vmax imax / in_8 wh. 0x87 w1sum_x 0x88 w2sum_x 0x8a varsum_x the signed sum: var0sum_x+var1sum_x+var2sum_x. 0x8b var0sum_x the sum of var h samples from each wattmeter element . in_8 is the gain 1 or 8 as configured by in_shunt. lsb = 9.4045*10 - 13 vmax imax / in_8 varh. 0x8c var1sum_x 0x8d var2sum_x downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 101 wsum _x and varsum_x are the signed sum of phase - a, phase - b and phase - c wh or varh values according to the metering equation specified in the i/o ram register equ [2:0] . wxsum_x is the wh value accumulated for phase x in the last accumulation interval and can be computed based on the specified lsb value. for example , with vmax = 600 v and imax = 208 a, the lsb for wxsum_x is 0. 1173 wh. instantaneous energy measurement variables table 61 contains various measurement variables . ixsqsum_x and vxsqsum are the squared current and voltage samples acquired during the last accumulation interval. they can be used to calculate rms vo ltages and currents. insqsum_x can be used for computing t he neutral current. table 61 : ce energy measurement variables ce address name description 0x8f i0sqsum_x the sum of squared current samples from each element. lsb i = 9.4045*10 - 13 imax 2 / in_8 2 a 2 h 0x90 i1sqsum_x 0x91 i2sqsum_x 0x92 insqsum_x the sum of squared current samples from the calculated neutral: + + 2 2 1 0 ) ( i i i lsb=9. 4045*10 -13 imax 2 / in_8 2 a 2 h 0x99 i0sqres_x r esidual current measurements with double - precision accuracy. the exact current is : isqn = insqsum_x + insqres_x 0x9a i1sqres_x 0x9b i2sqres_x 0x9c insqres_x 0x93 v0sqsum_x the sum of squared voltage samples from each element. lsb v = 9.4045*10 - 13 vmax 2 v 2 h 0x94 v1sqsum_x 0x95 v2sqsum_x the rms values can be computed by the mpu from the squared current and voltage samples as follows: other transfer variables include those available for frequency and phase measurement, an d those re flecting the count of the zero - crossings of the mains voltage and the battery voltage. these transfer variables are listed in table 62 . mainedge_x reflects the number of half - cycles accounted for in the last accumulated interval for the ac signal of the phase specified in the freqsel1 and freqsel0 registers. mainedge_x is useful for im plementing a real - time clock based on the input ac signal. acc s i rms n f lsb ixsqsum ix ? ? ? = 3600 acc s v rms n f lsb vxsqsum vx ? ? ? = 3600 downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 102 re v 2 table 62 : other transfer variables ce address name description 0x82 freq_x fundamental frequency : lsb 6 32 10 587 .0 2 ? ? s f hz 0x97 ph_atob_x voltage phase lag. the selection of the reference phase is based on freq sel1 and freqsel0 in the c ec onfig register: if freqsel1/freqsel0 select phase a: phase lag from a to b. if freqsel1/freqsel0 select phase b: phase lag from b to c. if freqsel1/freqsel0 select phase c: phase lag from c to a. the a ngle in degrees is (0 to 360): ph_atob_x * 360/n acc + 2.4 0x98 ph_atoc_x if freqsel1/freqsel0 select phase a: phase lag from a to c. if freqsel1/freqsel0 select phase b: phase lag from b to a. if freqsel1/freqsel0 select phase c: phase lag from c to b. angle in degrees is (0 to 360): ph_atoc _x * 360/n acc + 4.8 0x83 mainedge_x the number of edge crossings of the selected voltage in the previous ac cumulation interval. edge crossings are either direction and are de bounced. 0x8 4 vb at_sum _x the output of the battery measurement. this value is equivalent to twice the measured adc value. 5.3.9 temperature measurement and temperature compensation table 63 describes the ce registers supporting temperature measurement and temperature compensation. table 63 : ce temperature registers ce address name default description 0x81 temp_raw n/a the filtered, unscaled reading from the temperature sensor. 0x9d temp _x n/a this register contains the difference between the die temperature and the reference/calibration temperature as established in the temp_nom register, measured in 0.1c. 0x39 degscale 21755 scale factor for the temperature calculation. it is not necessary to use values other than the default value. 0x1f temp_nom 0 this register holds the reference or calibration temperature vale. at calibration time, the value read in temp_raw must be written to temp_nom. 0x3a ppmc 0 linear temperature correction factor. 0x3b ppmc2 0 quadratic temperature correction factor. 5.3.10 pulse generation table 64 describes the ce pulse generation parameters . the combination of the pulse_slow and pulse_fast parameters (see table 58 ) control s the speed of the pulse rate. the default values of 0 and 0 will maintain the original pulse rate given by the kh eq uation. wrate controls the number of pulses that are generated per measured wh and varh quantities. the lower wrate is , the slower the pulse rate for measured energy quantity. the metering constant kh is derived from wrate as the amount of energy measured for each pulse. that is, if kh = 1wh/pulse, a power applied to the meter of 120 v and 30 a results in one pulse per second. if the load is 240 v at 150 a, ten pulses per second will be generated. downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 103 the maximum pulse rate is 3*f s = 7.5 khz . control is transferred to the mpu for pulse generation if ext_pulse = 1 . in this case, the pulse rate is de termined by apulsew and a pulser . the mpu loads the source for pulse generation in apulsew and apulser to generate pulses. irrespective of the ext_pulse status , the output pulse rate controlled by apulsew and apulser is implemented by the ce only. by setting ext_pulse = 1, the mpu is providing the source for pulse generation. if ext_pulse is 1 , w0sum_x and var0sum_x are the default pulse generation sources. in this case, creep cannot be controlled since it is an mpu function. pulse_width allows adjustment of the pulse width for compatibility with calibration and other external equipment. the minimum pulse width possible is 66.16s. the maximum time jitter is1/6 of the mux cycle period (nominally 67 s) and is i ndependent of the number of pulses measured. thus, if the pulse generator is monitored f or one second, the peak jitter is 67 ppm. after 10 seconds, the peak jitter is 6.7 ppm. the average jitter is always zero. if it is attempted to drive either pulse generator faster than its maximum rate, it will simply out put at its maximum rate without exhi biting any rollover characteristics. the actual pulse rate, using wsum as an example, is: hz x f wsum wrate rate s 46 2 ? ? ? = , where f s = sampling frequency (2520.6 hz), x = pulse speed factor (as defined in the ceconfig register with the pulse_ fast and pulse_slow bits). table 64 : ce pulse generation parameters ce address name default description 0x21 wrate 171 kh = vmax * imax * 66.1782 / ( in_8 * wrate *n acc *x) wh/pulse . 0x22 kvar 6448 scale factor for var measurement. 0x23 sum_pre 2520 pre_samps * sum_cycles (n acc ) 0x41 apulsew 0 wh pulse (wpulse) generator input to be updated by the mpu when using external pulse generation . the output pulse rate is: apulsew * f s * 2 - 32 * wrate * x * 2 - 14 . thi s input is buffered and can be updated by the mpu during a conversion interval. the change will take effect at the beginning of the next interval. 0x38 pulsewidth 12 register for pulse width control of xpulse and ypulse . the maximum pulse width is (2* pulsewidth +1)*(1/fs) . the default value will generate pulses of 10 ms width at fs = 2520.62 hz. 0x42 apulser 0 varh (rpulse) pulse generator input . 0x43 apulsex 0 pulse generator input for xpulse output. 0x44 apulsey 0 pulse generator input for ypulse output. 0x45 wsum_accum 0 roll - over accumulator for wpulse. a pulse is generated when this register reaches 2 31 . 0x46 vsum_accum 0 roll - over accumulator for rpulse. a pulse is generated when this register reaches 2 31 . 0x47 sum2_accum 0 roll - over accumulator for the xpulse pulse output. 0x48 sum3_accum 0 roll - ove r accumulator for the ypulse pulse output . downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 104 re v 2 5.3.11 noise suppression and version parameters table 65 shows the ce parameters used for suppression of noise due to scaling and truncation effects. table 65 : ce parameters for noise suppression and code version ce address name default description 0x26 quanta 0 these parameters are added in channel a to the watt calculation to compensate for in put noise and truncation. lsb = ( vmax * imax / in_8 ) *1.04173*10 -9 w 0x27 quantb 0 0x28 quantc 0 0x2a quant_vara 0 these parameters are added to the var calculation for element a and b to compensate f or in put noise and truncation. lsb = ( vmax * imax / in_8 ) * 1.04173*10 -9 w 0x2b quant_varb 0 0x2c quant_varc 0 0x2e quant_ia 0 these parameters are added to compensate for input noise and truncation in their respective channels in the squaring calculations for i 2 and v 2 . lsb= vmax 2 *5 . 08656*10 -13 v 2 and lsb= ( imax 2 /in_8 2 )* 5. 08656*10 -13 a 2 0x2f quant_ib 0 0x30 quant_ic 0 0x35 0x63653333 text strings holding the ce version information as supplied by the ce data associated with the ce code. for example, the words 0x63653333 and 0x61303463 form the text string ce33a04c. these locations are overwritten in operation. 0x36 0x61303463 0x37 0x00000000 5.3.12 ce calibration parameters table 66 lists the parameters that are typically entered to effect calibration of meter accuracy. table 66 : ce calibration parameters ce address name default description 0x10 cal_ia 16384 these constants control the gain of their respective channels. the n ominal value for each parameter is 2 14 = 16384. the gain of each channel is directly proportional to its cal parameter. thus, if the gain of a channel is 1% slow, cal should be increased by 1%. cal_id is used to calibrate the neutral current input. 0x11 cal_va 16384 0x12 cal_ib 16384 0x13 cal_vb 16384 0x14 cal_ic 16384 0x15 cal_vc 16384 0x16 cal_id 16384 0x18 phadj_a 0 these constants control the ct phase compensation. no com - pensation occurs when phadj_x = 0. as phadj_x is increased, more compensation (lag) is introduced. the r ange is 2 15 C 1. if it is desired to delay the current by the angle , the equations are : ? ? ? = tan tan x phadj 0131 .0 1487 .0 02229 .0 2 _ 20 at 60hz ? ? ? = tan tan x phadj 009695 .0 1241 .0 0155 .0 2 _ 20 at 50hz 0x19 phadj_b 0 0x1a phadj_c 0 downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 105 5.3.13 ce flow diagrams figure 45 through figure 47 show the data flow through the ce in simplified form. functions not shown include delay compensation, sample interpolation, scaling and the processing of meter equations. figure 45 : ce data flow: multiplexer and adc figure 46 : ce data flow: scaling, gain control, intermediate variables f clk = 4.9152mhz vref multiplexer f s = 2184 hz per channel ? mod fir de - multiplexer f s = 2184 hz per channel ia_raw ia vb vaib ic vc ib_raw va_raw vb_raw ic_raw vc_raw id id_raw ia_raw va_raw offset null phase comp gain_adj cal_ia x x x lpf phadj_a w0 offset null x x x lpf cal_va 90 var0 ia v0 f0 generator f0 f0 f0 x ...other phases downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 106 re v 2 figure 47 : ce data flow: squaring and summation stages ia wa square wb vara varb va iasq vasq ibsq sum iasqsum_x vasqsum_x icsqsum_x sum wasum_x wbsum_x varasum_x varbsum_x sum_cycles =60 & pre_samps = 42 mpu f0 i 2 v 2 pre_samps wc varc wcsum_x varcsum_x ibic vb vc icsq vbsq vcsq ibsqsum_x vbsqsum_x vcsqsum_x f0 downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 107 6 electrical s pecifications 6.1 a bsolute m aximum r atings table 67 shows the absolute maximum ranges for the device. stresses beyond absolute m aximum ratings may cause permanent damage to the device. these are stress ratings only and functional o perati on at these or any other conditions beyond those indicated under recommended operating conditions ( section 6.3 ) is not implied. exposure to absolute - maximum - rated conditions for extended periods may affect device re liability. all voltages are with respect to gnda. table 67 : absolute maximum ratings voltage and current supplies and ground pins v3p3sys, v3p3a ? 0.5 v to 4.6 v vbat - 0.5 v to 4.6 v gndd - 0.5 v to +0.5 v analog output pins v3p3d - 10 ma to 10 ma, - 0.5 v to 4.6 v vref - 10 ma to +10 ma, - 0.5 v to v3p3a+0.5 v v2p5 - 10 ma to +10 ma, - 0.5 v to 3.0 v analog input pins ia, va, ib, vb, ic, vc, v1 - 10 ma to +10 ma - 0.5 v to v3p3a+0.5 v xin, xout - 10 ma to +10 ma - 0.5 v to 3.0 v all other pins configured as seg or com drivers - 1 ma to +1 ma, - 0.5 to v3p3d+0.5 configured as digital inputs - 10 ma to +10 ma, - 0.5 to 6 v configured as digital outputs - 15 ma to +15 ma, - 0.5 v to v3p3d+0.5 v all other pins ? 0.5 v to v3p3d+0.5 v temperature and esd stress operating junction temperature (peak, 100ms) 140 c operating junction temperature (continuous) 125 c storage temperature ? 45 c to +165 c solder temperature C 10 second duration 250 c esd stress on all pins 4 kv downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 108 re v 2 6.2 recommended external components table 68 : recommended external components name from to function value unit c1 v3p3a agnd bypass capacitor for 3.3 v supply 0.1 20% ? f c2 v3p3d gndd bypass capacitor for 3.3 v output 0.1 20% ? f csys v3p3sys gndd bypass capacitor for v3p3sys 1.0 30% f c2p5 v2p5 gndd bypass capacitor for v2p5 0.1 20% f xtal xin xout 32.768 khz crystal C electrically similar to ecs .327 - 12.5 - 17x or vishay xt26t, load capacitance 12.5 pf 32.768 khz cxs xin agnd load capacitor for crystal (depends on crystal specs and board parasitics). 33 10% pf cxl xout agnd load capacitor for crystal (depends on crystal specs and board parasitics). 7 10% ?? pf notes: 1. agnd and gndd should be connected together. 2. v3p3sys and v3p3a should be connected together. ? for accuracy and emi rejection, c1 + c2 should be 470 f or higher. ?? 1 0, 1 2, or 15 pf may be used if 7 pf is not available, with limited range for rtca_adj . 6.3 r ecommended operating c onditions table 69 : recommended operating conditions p arameter condition min typ max unit v3p3sys, v3p3a : 3.3 v supply voltage v3p3a and v3p3sys must be at the same voltage normal operation 3.0 3.3 3.6 v battery backup 0 3.6 v vbat no battery externally connect to v3p3sys battery backup : brn and lcd modes sleep mode 3.0 2.0 3.8 3.8 v v operating temperature - 40 +85 oc downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 109 6.4 p erformance s pecifications 6.4.1 input logic levels table 70 : i nput logic levels p arameter c ondition m in t yp m ax u nit digital high - level input voltage ? , v ih 2 v digital low - level input voltage ? , v il 0.8 v input pull - up current, i il e_rxtx, e_isync e_rst, cktest other digital inputs vin=0 v, ice_e=1 10 10 -1 0 100 100 1 a a a input pull down current, i ih ice_e reset pb other digital inputs vin = v3p3d 10 10 -1 -1 0 0 100 100 1 1 a a a a ? in battery powered modes, digital inputs should be below 0.3 v or above 2.5 v to minimize battery current. 6.4.2 o utput logic levels table 71 : output logic levels p arameter c ondition m in t yp m ax u nit digital high - level output voltage v oh i load = 1 ma v3p3d C 0.4 v i load = 15 ma v3p3d - 0.6 v digital low - level output voltage v ol i load = 1 ma 0 0.4 v i load = 15 ma 0.8 v opt_tx v oh ( v3p3d - opt_tx ) i source =1 ma 0.4 v opt_tx v ol i sink =20 ma 0.7 v 6.4.3 power - fault c omparator table 72 : power - fault comparator performance specifications p arameter c ondition m in t yp m ax u nit offset voltage : v1-vbias - 20 +15 mv hysteresis current: v1 vin = vbias C 100 mv 0.8 1.2 a response time : v1 + 100 mv overdrive 10 37 100 s wdt disable threshold: v1- v3p3a - 400 - 10 mv 6.4.4 v2 comparator (71m6534 only) table 73 : v2 comparator performance specifications parameter condition min typ max unit offset voltage : v2-vbias - 20 +15 mv hysteresis current vin = vbias C 100 mv 0.8 1.2 a response time + 100 mv overdrive 1 s downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 110 re v 2 6.4.5 battery monitor the lsb values do not include the 8- bit left shift at ce input. table 74 : batter y monitor performance specifications ( bme = 1) p arameter c ondition m in typ max unit load resistor 27 45 63 k lsb value [ m40mhz , m26mhz ] = [00], [10], or [11] fir_len =0 (l=138) fir_len =1 (l=288) fir_len =2 (l=384) (- 10%) - 48.7 - 5.35 - 2.26 (+10%) v v v [ m40mhz , m26mhz ] = [01] fir_len =0 (l=186) fir_len =1 (l=384) fir_len =2 (l=588) (- 10%) -1 9.8 - 2.26 - 0.63 (+10%) v v v offset error - 200 0 +100 mv 6.4.6 s upply c urrent table 75 : supply current performance specifications p arameter c ondition m in t yp max unit v3p3sys current (ce off) normal operation, v3p3a = v3p3sys = 3.3 v ckmpu = 614 khz no flash memory write rtm_e =0, eck_dis =1, adc_e =1, ice_e =0 4.2 5.3 ma v3p3sys current (ce on) 8. 4 9. 6 ma v3p3a current 3.5 3.8 ma vbat current - 400 +400 na v3p3sys current, write flash normal operation as above, except write flash at maximum rate, ce_e = 0, adc_ e = 0 10 12 ma vbat current vbat=3.6v brownout mode 71m6533/6533h 71m6534h lcd mode lcd dac off lcd dac on sleep mode 82 112 11 21 0.7 25 0 250 40 46 1 .5 a a a a a 6.4.7 v3p3d s witch table 76 : v3p3d switch performance specifications p arameter c ondition m in t yp max unit on resistance C v3p3sys to v3p3d | i v3p3d | 1 ma 9 15 on resistance C vbat to v3p3d | i v3p3d | 1 ma 32 45 downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 111 6.4.8 2.5 v v oltage r egulator unless otherwise specified, the load = 5 ma. table 77 : 2.5 v voltage regulator performance specifications p arameter c ondition m in t yp max unit v2p5 i load = 0 2.3 2.5 2.7 v v2p5 load regulation i load = 0 ma to 5 ma 40 mv voltage overhead v3p3 sys -v2p5 i load = 5 ma, r educe v3p3 until v2p5 drops 200 mv 460 mv pssr ? v2p5/ ? v3p3 reset=0, iload=0 -2 +2 mv/v 6.4.9 l ow -p ower v oltage r egulator unless otherwise specified, v3p3sys = v3p3a = 0, pb=gnd (brownout) . table 78 : low - power voltage regulator performance specifications p arameter c ondition m in t yp max unit v2p5 i load = 0 2. 3 2.5 2.7 v v2p5 load regulation i load = 0 ma to 1 ma 30 mv vbat voltage requirement i load = 1 ma, r educe vbat until reg_lp_ok = 0 3.0 v psrr v2p5/vbat i load = 0 - 50 50 mv/v 6.4.10 c rystal o scillator table 79 : crystal oscillator performance specifications p arameter c ondition m in t yp max unit maximum output power to crystal 1 crystal connected 1 w xin to xout capacitance 2 3 pf capacitance to gndd 2 xin xout rtca_adj = 0 5 5 pf pf 1 this specification de f ines a nominal relationship rather than a measured parameter. correct circuit operation will be verified with other specs that use this nominal relationship as a reference. 2 this specification will be guaranteed and verified in production samples, but will not be measured in production. 6.4.11 optical interface table 80 : optical interface performance specifications p arameter c ondition m in t yp max unit opt_tx v oh (v3p3d- opt_tx) i source =1 ma 0.4 v opt_tx v ol i sink = 20 ma 0.7 v downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 112 re v 2 6.4.12 lcd dac table 81 : lcd dac performance specifications p arameter c ondition m in t yp max unit vlcd voltage v dac lcd p v v lcd 019 .0 ) _ 059 .0 1(3 3 ? ? ? ? = 1 lcd_dac 7 - 10 +10 % 6.4.13 lcd d rivers the information in table 82 a pplies to all com and seg pins with lcd_dac [2:0] = 000 . table 82 : lcd driver performance specifications p arameter c ondition m in t yp max unit vlc2 voltage with respect to vlcd ? - 0.1 +0 .1 v vlc1 voltage ?? , ? bias ? bias ? bias, minimum output level with respect to 2*vlc2/3 with respect to vlc2/2 -3 -3 +2 +2 1.0 % vlc2 % vlc2 v vlc0 voltage ?? , ? bias with respect to vlc2/3 -4 +1 % vlc1 impedance ? i load = 100 a ( isink) 9 15 k ? i load = - 100 a ( isource) 9 15 vlc0 impedance ? i load = 100 a ( isink) 9 15 k ? i load = - 100 a ( isource) 9 15 ? vlcd is v3p3sys in mission mode and vbat in brownout and lcd modes. ?? specified as percentage of vlc2, the maximum lcd voltage. downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 113 6.4.14 temperature s ensor table 83 shows the performance for the temperature sensor . the lsb values do not include the 8- bit left shift at ce input. table 83 : temperature sensor performance specifications p arameter c ondition m in t yp max unit nominal relationship: n(t) = s n *(t-t n ) + n n , t n = 25oc nominal sensitivity (s n ) 2 3 3 00109 .0 ?? ? ?? ? ? ?= l s n [ m40mhz , m26mh ] = [00], [10], or [11] fir_len =0 (l=138) fir_len =1 (l=288) fir_len =2 (l=384) - 106 - 964 - 2286 lsb/oc [ m40mhz , m26mhz ] = [01] fir_len =0 (l=186) fir_len =1 (l=384) fir_len =2 (l=588) - 260 - 2286 -8 207 nominal offset (n n ) 2 3 3 508.0 ?? ? ?? ? ? = l n n [ m40mhz , m26mhz ] = [00], [10], or [11] fir_len =0 (l=138) fir_len =1 (l=288) fir_len =2 (l=384) 49447 449446 1065353 lsb [ m40mhz , m26mhz ] = [01] fir_len =0 (l=186) fir_len =1 (l=384) fir_len =2 (l=588) 121 0 71 1065353 382500 4 temperature error ? ? ? ? ? ? ? ? ? = n n s n t n t err ) )(( t n = 25c , t = - 40oc to +85oc - 10 1 + 10 1 oc ? temperature error is calculated with the value n n , which is measured at t n during meter calibration and stored in mpu or ce for use in temperature calculations. 1 guaranteed by design; not production tested. 2 this specification defines a nominal relationship rather than a measured parameter. correct circuit operation will be verified with other specs that use this nominal relationship as a reference. downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 114 re v 2 6.4.15 vref and vbias table 84 shows the performance specifications for vref and vbias . unless otherwise specified, vref_dis = 0. table 84 : vref performance specifications p arameter c ondition m in t yp max unit vref output voltage, vref(22 ) ta = 22oc 1.193 1.195 1.197 v vref chop step 40 mv vref power supply sensitivity vref / v3p3a v3p3a = 3.0 to 3.6 v - 1.5 1.5 mv/v vref input impedance vref_dis = 1 , vref = 1.3 to 1.7 v 100 k vref output impedance cal =1, i load = 10 a, - 10 a 2.5 k vnom definition 3 6 2 6 10 2 ) 22 ( 10 1 ) 22 () 22 ( )( ? ? ? ? + ? ? + = tc t tc t vref t vnom v if trimbga and trimbgb are available ( 71m6533 g/ h , 71m6534h ) definitions 4 = 0 . 1 trimbgb - 0.143( trimm +0.5), 900 370000 500 22 ? ? ? = trimbga temp , = (56.2 C trimt )0.55 vnom temperature coefficients 3 tc1 tc2 + 19 - 0.065? +0.34 + 8.0 0.0 15 - 0.00 13 C 0.35 v /oc v /oc 2 vref(t) deviation from vnom(t) )40,22 max( 10 )( )( )( 6 ? ? t t vnom t vnom t vref -15 1 +1 5 1 ppm /oc if trimbga and trimbgb are not available (71m6533 , 71m6534 ) vnom temperature coefficients : tc1 tc2 3.18 (52.46 - trimt ) - 0.4 44 v /oc v /c 2 vref(t) deviation from vnom(t) )40,22 max( 10 )( )( )( 6 ? ? t t vnom t vnom t vref - 40 1 +40 1 ppm /oc vref aging 25 ppm / year vbias voltage ta = 25 c ta = - 40 c to 85 c (- 1%) (- 4%) 1.6 1.6 (+1%) (+4%) v v 1 guaranteed by design; not production tested . 2 this specification will be guaranteed and verified in production samples, but will be measur ed in pro duction only at dc. 3 this relationship describes the nominal behavior of vref at different temperatures. 4 temp 22 is the value read from the temperature sensor at 22c. downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 115 6.4.16 adc converter , v3p3a referenced table 85 shows the performance specifications for the adc converter, v3p3a referenced. for this data, fir_len =2 , [ m40mhz, m26mhz ]=[00], unless stated otherwise, vref_dis =0. lsb values do not include the 8- bit left shift at the ce input. table 85 : adc converter performance specifications p arameter c ondition m in t yp max unit recommended input range (vin- v3p3a ) - 250 250 mv peak voltage to current crosstalk ) cos( * 10 6 vcrosstalk vin vin vcrosstalk ? vin = 200 mv peak, 65 hz, on va . vcrosstalk = largest measurement on ia or ib - 10 1 10 1 v/v thd (first 10 harmonics) : 1 250 mv - pk 20 mv- pk vin=65 hz, 64 kpts fft, blackman - harris window - 75 - 90 db db input impedance at 65 hz 40 90 k temperature coefficient of input impedance at 65 hz 1.7 /c lsb size 3 3 75.4 25.1 ?? ? ?? ? ? ? = l v v ref lsb l = fir length [ m40mhz , m26mhz ] = [00], [10], or [11] fir_len =0 fir_len =1 fir_len =2 3231 355 150 nv/lsb [ m40mhz , m26mhz ] = [01] fir_len =0 fir_len =1 fir_len =2 1319 150 42 nv/lsb digital full scale 3 3 ?? ? ?? ? l l = fir length [ m40mhz , m26mhz ] = [00], [10], or [11] fir_len =0 fir_len =1 fir_len =2 97336 884736 2097152 lsb [ m40mhz , m26mhz ] = [01] fir_len =0 fir_len =1 fir_len =2 238328 2097152 7529536 lsb a dc gain error vs %power supply variation 3.3/3 3 100 / 357 10 6 a p v v nv nout in pk ? ? vin=200 mv pk, 65 hz v3p3a=3.0 v, 3.6 v 50 ppm / % input offset (vin - v3p3a ) - 10 10 mv 1 guaranteed by design; not production tested. downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 116 re v 2 6.5 t iming s pecifications 6.5.1 flash memory table 86 : flash memory timing specifications p arameter c ondition m in t yp max unit flash read pulse width v3p3a = v3p3sys = 0 (brownout mode) 30 100 ns flash write cycles - 40c to +85c 20,000 cycles flash data retention 25c 100 years flash data retention 85c 10 years flash byte writes between page or mass erase operations 2 cycles write time per byte 42 s page erase (1024 bytes) 20 ms mass erase 200 ms 6.5.2 eeprom i nterface table 87 : eeprom interface timing p arameter c ondition m in t yp max unit write clock frequency (i 2 c) ckmpu = 4.9 mhz, using interrupts 78 khz ckmpu = 4.9 mhz, bit - banging dio4/5 150 khz write clock frequency (3 - wire) ckmpu=4.9 mhz 500 khz 6.5.3 reset table 88 : reset timing p arameter c ondition m in t yp max unit reset pulse width 5 s reset pulse fall time 1 1 s 1 guaranteed by design; not production tested. 6.5.4 rtc table 89 : rtc range for date p arameter c ondition m in t yp max unit range for date 2000 - 2255 year downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 117 6.5.5 spi slave port (mission mode) table 90 : spi slave port (mission mode) timing p arameter c ondition m in t yp max unit t spicyc pclk cycle time 1 s t spilead enable lead time 15 ns t spilag enable lag time 0 ns t spiw pclk pulse width : high low 40 40 ns ns t spisck pcsz to first pclk fall ignore if pclk is low when pcsz falls. 2 ns t spidis disable time 0 ns t spiev pclk to data out 15 ns t spisu data input setup time 10 ns t spih data input hold time 5 ns msb out lsb out msb in lsb in t spicyc t spilead t spilag t spisck t spih t spiw t spiev t spiw t spidis pcsz pclk psdi psdo figure 48 : spi slave port (mission mode) timing downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 118 re v 2 6.6 t ypical performance d ata 6.6.1 accuracy over current figure 49 shows meter accuracy over current for various line frequencies. figure 50 shows meter accuracy over current at various load angles. figure 49 : wh accuracy ( 0.1 a - 200 a, 240 v, room temperature ) at various frequencies (differential mode , cts ) figure 50 : typical wh accuracy ( 0.02 a - 200 a , 240 v , room temperature ), various load angles (differential mode, cts) - 0.5 - 0.4 - 0.3 - 0.2 - 0.1 0 0.1 0.2 0.3 0.4 0.5 0.1 1 10 100 1000 % error current (a rms) 6533/34 wh performance, equation 5, 45 hz, 55 hz, 65 hz - 240 v - 0 phase angle 45 hz 55 hz 65 hz -1 - 0.8 - 0.6 - 0.4 - 0.2 0 0.2 0.4 0.6 0.8 1 0.01 0.1 1 10 100 error (%) i [a] 71m6533/6534 wh accuracy at various phase angles equation 5, 240 v 0 60 300 downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 119 6.6.2 accuracy over temperature with digital temperature compensation enabled, the temperature characteristics of the reference v oltage (vref) are compensated to within 40 ppm/c for the 71m6533/71m6534 and within 15 ppm/c for the 71m6533h/71m6534h. 6.7 p ackage outline drawings 6.7.1 71m6533 ( 100 - pin lqfp ) controlling dimensions are in mm. figure 51 : 71m6533 / 71m6533g/71m6533h 100 -p in lqfp package outline 1 15.7(0.618)16.3(0.641) 15.7(0.618) 16.3(0.641) top view max. 1.600 0.50 typ. 14.000 +/- 0.200 0.225 +/- 0.045 0.60 typ> 1.50 +/- 0.10 0.10 +/- 0.10 side view downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 120 re v 2 6.7.2 71m6534/6534h (120 - pin lqfp) controlling dimensions are in mm. max. 1.600 0.400 13.950 +/- 0.100 0.180 +/- 0.050 0.600 +/- 0.150 1.400 +/- 0.050 0.100 +/- 0.050 16.000 +/- 0.200 120 1 16.000 +/- 0.200 7.000 14.000 +/- 0.100 14.000 +/- 0.100 8.000 8.000 7.000 figure 52 : 71m6534 /6534h 120 -p in lqfp package outline downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 121 6.8 pinout 6.8.1 71m6533 / 71m6533 g/ 71m6533 h pinout ( 100 - pin lqfp ) figure 53 : pinout for 71m6533/71m6533g/71m6533h l qf p- 100 package 1 teridian 71m6533 71m6533g 71m6533h 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 91 92 93 94 95 96 97 98 99 100 26 27 28 29 30 51 52 53 54 55 56 57 58 59 60 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 seg38/dio18/ mtx seg9/ e_rxtx gndd tmuxout seg37/dio17 tx seg3/ pclk v3p3d seg19/ cktest seg4/ psdo seg5/ pcsz dio2/ opt_tx v3p3sys dio3 com1com2 com3 com0 dio57dio58 dio56 gndd seg14 seg13 seg12 seg7/ mux_sync seg8 seg50/dio30 seg6/ psdi seg36/dio16 seg49/dio29 seg2/ test2 seg1/ test1 seg15 seg0/ test0 seg65/dio45seg44/dio24 seg45/dio25 seg47/dio27seg46/dio26 seg33/dio13 seg63/dio43 seg64/dio44 seg16 seg27/dio7/ rpulse seg39/dio19seg26/dio6/ wpulse seg25/dio5/ sdata seg29/dio9/ ypulse rxseg31/dio11 gnddreset v2p5 vbat seg24/dio4/ sdck seg23seg22 seg28/dio8/ xpulse seg41/dio21seg40/dio20 ice_e seg18 seg17 seg30/dio10seg20 seg21seg43/dio23 vbvc v3p3a gnda va pbnc xout test xin dio1/ opt_rx v1icn vrefiap ibn icp gndd seg11/ e_rst seg10/ e_tclk seg61/dio41ian ibp idp seg35/dio15 seg34/dio14 seg67/dio47seg68/dio48 seg69/dio49 seg70/dio50 seg71/dio51 idn downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 122 re v 2 6.8.2 71m6534/71m6534h pinout (120 - pin lqfp) figure 54 : pinout for 71m6534 /71m6534h lqfp - 120 package 1 teridian 71m6534/ 71m6534h 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 seg38/dio18/ mtx seg16 seg27/dio7/ rpulse seg39/dio19seg26/dio6/ wpulse seg25/dio5/ sdata seg29/dio9/ ypulse rxseg31/dio11 gnddreset v2p5 vbat seg24/dio4/ sdck seg23seg22 seg28/dio8/ xpulse seg41/dio21seg40/dio20 ice_e seg43/dio23 seg18 seg17 seg30/dio10seg20 seg21 gndd seg14 seg13 seg12 seg11/ e_rst seg10/ e_tclk seg9/ e_rxtx seg7/ mux_sync seg8 seg50/dio30 seg6/ psdi seg36/dio16 seg49/dio29 seg35/dio15 seg34/dio14 seg48/dio28 seg2/ test2 seg1/ test1 seg15 seg0/ test0 seg56/dio36 seg57/dio37 seg58/dio38 seg59/dio39 seg71/dio51seg72/dio52 seg73/dio53 seg74/dio54 seg75/dio55 gndd tmuxout seg37/dio17 tx seg3/ pclk v3p3d seg19/ cktest seg4/ psdo seg5/ pcsz seg65/dio45 dio2/ opt_tx v3p3sys dio3 com1com2 com3 com0 dio57dio58 seg66/dio46seg67/dio47 seg68/dio48 seg69/dio49 seg70/dio50 vb seg32/dio12pb xout test xin gndd dio1/ opt_rx v1v2 nc vref iap ibp icp icn vbias vc v3p3a gnda va seg62/dio42seg61/dio41 seg42/dio22/ mrx seg54/ e_tbus3 seg53/ e_tbus2 seg52/ e_tbus1 seg51/ e_tbus0 seg44/dio24 seg45/dio25 seg47/dio27seg46/dio26 dio56 seg55/ e_isync seg33/dio13 seg63/dio43 seg64/dio44 idpidn ibn ian downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 123 6.9 pin d escriptions pins marked with an asterisk (e.g. v2*) are only available on the 71m6534. 6.9.1 power and ground pins table 91 : power and ground pins name type circuit description gnda p C analog ground: this pin should be connected directly to the ground plane. gndd p C digital ground: this pin should be connected directly to the ground plane. v3p3a p C analog power supply: a 3.3 v power supply should be connected to this pin, must be the same voltage as v3p3sys. v3p3sys p C system 3.3 v supply. this pin should be connected to a 3.3 v power supply. v3p3d o 13 auxiliary voltage output of the chip . in mission mode, this pin is con - nected to v3p3sys b y the internal selection switch. i n brownout mode, it is internally connected to vbat . v3p3d is floating in lcd and sleep mode. a bypass capacitor to ground should not exceed 0 .1 f. vbat p 12 battery backup and oscillator power supply . a battery or super - capacitor is to be connected between vbat and gndd . if no battery is used, connect vbat to v3p3sys. v2p5 o 10 output of the internal 2.5 v regulator . a 0.1 f capacitor to gnda should be connected to this pin. 6.9.2 analog pins table 92 : analog pins name type circuit description ia p/ian, ib p/ibn, icp/icn idp/idn i 6 differential or single - ended line current sense inputs: these pins are voltage inputs to the internal a/d converter . typically, they are connected to the outputs of current sensors . unused pins must be tied to v3p3a . va, vb , vc i 6 line voltage sense inputs: these pins are voltage inputs to the internal a/d converter. typically, they are connected to the outputs of resistor di viders . unused pins must be tied to v3p3a. v1 i 7 comparator input: this pin is a voltage input to the internal comparator . the voltage applied to the pin is compared to the internal bias voltage (1.6 v) . if the input voltage is above vbias, the comparator output will be high (1). if the comparator output is low, a voltage fault will occur. a s eries 5 k ? resistor should be connected from v1 to the resistor divider. v2* i 7 comparator input (71m6534 on ly) : thi s pin i s a voltage input to an internal com parator. the voltage applied to this pin is compared to an internal reference voltage (vbias). if the input voltage is above vbias, the comparator output will be high (1). vbias* o 9 low - impedance output for use in biasing current sensors and voltage dividers. vref o 9 voltage reference for the adc. this pin should be left unconnected (floating). xin xout i 8 crystal inputs: a 32 khz crystal should be connected across these pins. typically, a 33 pf capacitor is also connected from xin to gnda and a 7 pf capacitor (alternatively, 10 pf to 15 pf) is connected from xout to gnda. it is important to minimize the capacitance between these pins. see the crystal manufacturer datasheet for details. if an external clock is used, a 150 mv (p - p) clock signal should be applied to xin, and xout should be left unconnected. pin types: p = power, o = output, i = input, i/o = inp ut/output the circuit number denotes the equivalent circuit, as specified under section 6.9.4 i/o equivalent circuits . downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 124 re v 2 6.9.3 digital pins table 93 : digital pins name type circuit description com3,com2, com1, com0 o 5 lcd common outputs: these 4 pins provide the select signals for the lcd display. seg0seg2, seg8, seg12 seg18 , seg20seg23 o 5 dedicated lcd segment output pins. seg24/dio4 seg31/dio11, seg32/dio12* seg33/dio13 seg41/dio21, seg42/dio22* seg43/dio23 seg47/dio27, seg48/dio28* seg49/dio29, seg50/dio30, seg56/dio36* seg59/dio39* seg61/dio41, seg62/dio42* seg63/dio43 seg65/dio45, seg66/dio45* seg67/dio47 seg71/dio51 seg72/dio52* seg75/dio55* i/o 3, 4, 5 multi - use pins, configurable as either lcd seg driver or dio. (dio4 = sck, dio5 = sda when configured as eeprom interface; wpulse = dio6, varpulse = dio7 , dio8 = xpulse, dio9 = ypulse when configured as pulse outputs). unused pins must be configured as outputs or terminated to v3p3/gndd. seg32/dio12, seg42/dio22, seg48/dio28, seg56/dio36 through seg59/dio39, seg62/dio42, seg66/dio45, seg72/dio52 through seg75/dio55 are only available in the 71m6534. seg38/dio18 and seg42/dio22 can be assigned to the multi plexed uart outputs/inputs mtx and mrx (71m6534 only). this function is controlled by the i/o ram bits umux_e and umux_sel . seg51/e_tbus0* seg52/e_tbus1* seg53/e_tbus2* seg54/e_tbus3* seg55/e_isync_ brkrq* i/o 5 multiuse pins, configurable as either lcd seg driver or emulator trace bus or handshake (71m6534 only). seg3/pclk seg4/psdo seg5/pcsz seg6/psdi i/o 3, 4, 5 multi - use pins, configurable as either lcd seg driver or spi port. dio3 , dio56 , dio57 , dio58 i/o 3 dedicated dio pins. downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 125 e_rxtx/seg9 i/o 1, 4, 5 multi - use pins, configurable as either emulator port pins (when ice_e pulled high) or lcd seg drivers (when ice_e tied to gnd). e_rst/seg11 i/o 1, 4, 5 e_tclk/seg10 o 4, 5 ice_e i 2 ice enable. when zero, e_rst, e_tclk, and e_rxtx become seg9 , seg 10 , and seg 11 respectively. for production units, this pin should be pulled to gnd to disable the emulator port. cktest/seg19 , muxsync/seg7 o 4, 5 multi - use pin s , configurable as either multiplexer /clock output or lcd segment driver using the i/o ram bits ckout_e or mux_sync_e. tmuxout o 4 pin connected to the output test multiplexer. controlled by t mux [3:0]. opt_rx/dio1 i/o 3, 4 multi - use pin, configurable as optical receive input or general dio. when configured as opt_rx, this pin is a regular uart rx pin. if this pin is unused it must be configured as an output or terminated to v3p3d or gndd. opt_tx/dio2 i/o 3, 4 multi - use pin, configurable as either optical led transmit output or general dio. when configured as opt_tx, this pin is capable of directly driving an led for transmitting data in an ir serial interface. reset i 2 chip reset: this input pin is used to reset the chip into a known state. for normal operation, this pin is pulled low. to reset the chip, this pin should be pulled high. this pin has an internal 30 a (nominal) current source pull - down. no external reset circuitry is necessary. rx i 3 uart input. if this pin is unused it must be terminated to v3p3d or gndd. tx o 4 uart output. test i 7 enables production test. this pin must be grounded in normal operation. pb i 3 push button input. this pin must be at gndd when not active or un used . a rising edge sets the ie_pb flag. it also causes the part to wake up if it is in sleep or lcd mode. pb does not have an internal pull - up or pull - down resistor . pin types: p = power, o = output, i = input, i/o = input/output. the circuit number denotes the equivalent circuit, as specified in section 6.9.4 . downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 126 re v 2 6.9.4 i/o equivalent circuits oscillator equivalent circuit type 8: oscillator i/o digital input equivalent circuit type 1: standard digital input or pin configured as dio input with internal pull-up gndd 110k v3p3d cmos input v3p3d digital input pin digital input type 2: pin configured as dio input with internal pull-down gndd 110k gndd cmos input v3p3d digital input pin digital input type 3: standard digital input or pin configured as dio input gndd cmos input v3p3d digital input pin cmos output gndd v3p3d gndd v3p3d digital output equivalent circuit type 4: standard digital output or pin configured as dio output digital output pin lcd output equivalent circuit type 5: lcd seg or pin configured as lcd seg lcd driver gndd lcd seg output pin to mux gnda v3p3a analog input equivalent circuit type 6 : adc input analog input pin comparator input equivalent circuit type 7: comparator input gnda v3p3a to comparator comparator input pin to oscillator gndd oscillator pin vref equivalent circuit type 9: vref from internal reference gnda v3p3a vref pin v2p5 equivalent circuit type 10: v2p5 from internal reference gndd v3p3d v2p5 pin vlcd equivalent circuit type 11: vlcd power gndd lcd drivers vlcd pin vbat equivalent circuit type 12: vbat power gndd power down circuits vbat pin v3p3d equivalent circuit type 13: v3p3d from v3p3sys v3p3d pin from vbat 1040 downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 127 7 o rdering i nformation part pin- package vref trim de vi ation ** flash size (kb) packag e ordering number package mark ing 71m6533 100 lqfp (l ead(pb) - free ) 40 128 bulk 71m6533 - igt/f 71m6533 - igt 71m6533h 15 128 71m6533h - igt/f 71m6533h - igt 71m6533g * 40 256 71m6533g - igt/f 71m6533 g- igt 71m6533 40 128 tape and reel 71m6533 - igtr/f 71m6533 - igt 71m6533h 15 128 71m6533h - igtr/f 71m6533h - igt 71m6533g * 40 256 71m6533g - igtr/f 71m6533 g- igt 71m653 4 120 lqfp (l ead(pb) - free ) 40 128 bulk 71m6534 - igt/f 71m6534 - igt 71m653 4h 15 256 71m6534h - igt/f 71m6534 h- igt 71m653 4 40 128 tape and reel 71m6534 - igtr/f 71m6534 - igt 71m6534 h 15 256 71m6534 h- igtr/f 71m6534 h- igt * future product contact factory for availability. ** vref trim deviation is the difference between the physical reference voltage and the nominal reference voltage (vnom, as calculated from the trim fuses) in ppm/c. see s ection 3.5.1 for details. 8 related information users must also refer to t he following documents related to the 71m6533 and 71m6534 : ? 71m6533 /g/h and 71m6534 /h data sheet ( this document) ? 71m653 x software users guide (sug) 9 contact information for more information about maxim products or to check the availability of the 71m6533/ g/ h and 71m6534/ h, contact technical support at www.maxim - ic.com/support . downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 128 re v 2 appendix a: acronyms afe analog front end amr automatic meter reading ansi american national standards institute ce compute engine dio digital i /o dsp digital signal processor fir finite impulse response i 2 c inter - ic bus ice in - circuit emulator iec international electrotechnical commission mpu microprocessor unit (cpu) pll phase - locked loop rms root mean square sfr special function register soc system on chip spi serial peripheral interface tou time of use uart universal asynchronous receiver/transmitter downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet re v 2 129 appendix b: revision history revision number revision date description 2 2/12 1) added guaranteed by design notes to the electrical specifications. 2) added explanation on nv properties of rtca_adj [ ] and preg/qreg [ ] and corrected entries in table 54 . 3) a dded note that transitions to brownout mode must be avoided during page erase operations. 4) added n ote in application section ( 3.1 ) stating that fi l te r com - ponents o ther that those shown on the demo boards should not be connected to the sensor input pins . added reference to an529 2. 5) con solidated spelling of low - power modes (sleep, lcd, brown out ) and of compstat register . 6) corrected value for c2 capacitor in table 68 . 7) extended explanation of wd_ovf (not preserved in sleep mode) and corrected entries in table 54 . 8) added explanation of wd_n r ovf_flag . 9) added explanation on mpu activity on transition to brownout mode in section 2.4.2 . 1.2 august 3, 2010 1) throughout document: added bit ranges to all register fields where missing (e.g. mpu_div[2:0] ). 2) figure 1 : c orrected name for psdi and psdo signals. 3) section 1.2.3 ( page 11 ) : added note concerning tailoring ce code for adc r e solution. 4) section 1.1.1 , table 5 (page 15 ): corrected equations for equ =3. added note C not all ce codes support all equations. 5) cl arified section 1.3.2 (page 16 ). 6) section 1.4 80515 mpu core : ? (page 19 ) table 6 : change approximate frequencies to exact fre quencies. ? (page 19 ): changed providing library to providing demonstration source code. ? (page 20 ) added note about mux_div =0 disables adc output. ? (page 21 ) see restrictions on intbits register. ? (page 22 ) added p1 - p3 to table 10 . ? (page 24 ) updated data pointer description. ? (page 25 ) table 14 : added note about clearing the wrprot_ce and wrprot_bt bits. updated description for fwcol0, fwcol1. ? (page 26 ) section 1.4.6 : c larified sobuf, s1buf as tx and rx buffers. ? (page 27 ): added caution on proper way to clear flag bits. ? (page 31 ) table 25 : added interrupt sources for ext. interrupts 2 - 6. 7) section 1.5.2 pll and internal clocks ? (page 37 ) table 37 : changed frequencies to exact frequencies. ? (page 38 ) : added caution concerning frequency relationship to specific ce code. 8) (page 39 ) section 1.5.3 real - time clock (rtc) : added description fo r observing rtc timing on tmuxout pin. 9) (page 46 ) section 1.5.7 digital i/o : added caution about not sourcing current in or out of dio pins. updated figure 9 . 10) section 1.5.11 spi slave port , (page 52 ): clarified description of i/o ram access via the spi interface. added table 48 . 11) section 2.3 battery modes (page 57 ): added details on software downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet fds_6533_6534_004 130 re v 2 revision number revision date description precautions for switching between modes and factory programming of the first 6 flash addresses. . 12) figure 25 , figure 26 and figure 27 : c orrected name for psdi and psdo signals. 13) section 2.5.2 wake on timer (page 66 ): updated description. 14) section 3.1 connection of sensors (ct, resistive shunt) (page 68 ): added note concerning analog input pins requiring sensors with low source impedance. 15) section 4.12 mpu firmware library (page 77 ): modified to indicate demonstration source code provided. 16) section 4.13 crystal oscillator (page 77 ): updated caution about rejecting electromagnetic interference. 17) table 53 i/o ram map C functional order (page 79 ): updated format for unused and nvram locations. 18) section 5.3.4 environment (page 96 ): added comment concerning importance of parameter dependence on ce code environment. 19) section 5.3.7 ce s tatus and control : (page 99 ) updated description of ext_temp . updated table 58 . 20) section 5.3.8 ce transfer v ariables : ? (page 100 ) updated table 60 . ? (page 102 ) added vbat_sum_x to table 62 . 21) section 5.3.12 : added cal_id location. 22) section 1.1.1 : updated flow diagrams. 23) added 71m6533g (256 kb). 24) updated value for capacitor at xout (7 pf). 25) added description of delay compensation in ce ( 1.3.6 ). 26) added description of error bands for vref in 3.5.1 . 27) replaced accuracy with trim deviation in ordering information. 28) added explanation on pulse generation to description of registers wsum_accum and vsum_accum . 29) corrected comment in i/o ram table for entry dio_dir 1[7:5, 3:0] to state s ee dio_px and dio_p y for special options for the dio8 and dio9 outputs . 30) added comment in electrical specifications for battery monitor stating that the lsb values do not include the 8- bit left shift at ce input . 31) in section on real - time clock (rtc), corrected maximum value for rtca_adj to 0x7f and corrected adjustment rage to 15 ppm. added note: the digital adjustment using preg [16:0] and qreg [1:0] is preferred over the analog adjustment using rtca_adj: th e digital adjustment is more repeatable and has a wider range 32) corrected entry for spe in i/o ram table to state enables the spi interface on pins seg3 t hrough seg6 33) in i/o ram table for entry trim[7:0]: added trimt[7:0] to list of fuses accessible with trim[7:0]. 34) corrected entry in i/o ram table on ie_xfer and ie_rtc : re moved text stating that flags are cleared automatically . 35) added entry in i/o ram table for we : write data is discarded. 36) corrected formula for sag threshold in ce section. 37) completely reworked the description of the spi port. downloaded from: http:///
fds_6533_6534_004 71m6533/ g/ h and 71m6534/h data sheet maxim cannot assume responsibility for use of any circuitry other than circu itry entirely embodied in a maxim product. no cir cuit patent licenses are implied. maxim reserves the right to change the circuitry and specifications without notice at any time. maxim integrated products, 120 san gabriel drive, sunnyvale, ca 94086 408 - 737 - 7600 ? 20 12 maxim integrated products maxim is a registered trademark of maxim integrated products. revision number revision date description 1.1 november 9, 2009 changes and corrections: 1) stated < 0.1% for accuracy for both h and non - h parts over 2000:1 range on title page. 2) added stop and idle bits in description of pcom sfr. 3) consolidated spelling of rtca_adj . 4) added explanation for figure 18. 5) completely revised section 2.5.2 (wake on timer). 6) improved description of hysteresis in application section (3.11). 7) corrected bit range for ce_lctn to ce_lctn[7:0]. 8) corrected bit assignment for control of dio56 C dio58 ( dio_56[4] and dio_dir56[7]. 9) added lcd_seg19[ ] to table 47 . 10) added text in table 47 stating that registers rtc_sec to rtc_yr do not change at reset. 11) specified voltage lsb in ce interface description (for sag detection). 12) corrected formulae for rms calculation below table 56. 13) updated package outline draw ing. 14) added text describing connection of a trace emulator to the 71m6534 in s ection 3.13. 15) clarified write delay that applies to the rtc_sec and other rtc registers in s ection 1.4.3 and table 47. 16) added note describing firmware measures to be applied when using uart1 in full - duplex mode. 1.0 march 6, 2009 fir st publication with changes with respect to the preliminary data sheet (pds) as follows: 1) corrected reversed labels for timer/counter 1 and 2 in table 22 . 2) updated figure 7 (interrupt structure). 3) updated range for rtc_a from 1.9 ppm to 3.8 ppm. 4) changed sleep mode current at 25 c to 0.7 v and deleted entry for typical sleep mode current over temperature. 5) corrected bit enumeration for flsh_pgadr[7:2]. 6) corrected various typographical errors ( trimmt etc.) . 7) corrected entries under wk. column for gp0 - gp7 in alphabetical i/o ram table. 8) added explanation for hysteresis at the v1 pin in applications section. 9) replaced graph showing system performance specification over temperature with specification on accuracy of vref compensation. 10) changed accuracy of vref compensation over temperature to 15 ppm/c 11) changed lsb values provided for temperature sensor. 12) added minimum output level for vlc1 lcd voltage. 13) removed access to i/o ram from spi port description. 14) updated numerous parameters in electrical specification (temperature sensor, supply current for mission and battery modes). 15) corrected number of pre - boot cycles in flash memory section. 16) updated entries in i/o ram table under wake column. 17) updated ce register tables. downloaded from: http:///
71m6533/ g/ h and 71m6534/h data sheet 132 re v 2 downloaded from: http:///


▲Up To Search▲   

 
Price & Availability of 71M6533-ADNF

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X